When it comes to types or interfaces, we suggest following the guidelines presented by the react-typescript-cheatsheet community:“always use interface for public API’s definition when authoring a library or 3rd-party ambient type definitions.”“consider using type for your React Component Props and State, because it is more constrained.”
When it comes to types or interfaces, we suggest following the guidelines presented by the react-typescript-cheatsheet community: