Closed stramel closed 4 years ago
React.Props is deprecated and generally not used.
React.Props
The most common approach is either to specify the exact props you want ({ children: React.ReactNode } or use the React.FC<Props> to type the entire function.
{ children: React.ReactNode }
React.FC<Props>
Thanks. This was just an example to make sure that there was TypeScript syntax somewhere in the project, so no strong preference on this 👍
React.Props
is deprecated and generally not used.The most common approach is either to specify the exact props you want (
{ children: React.ReactNode }
or use theReact.FC<Props>
to type the entire function.