Skip to content
loading...

re: React Typescript Cheatsheet VIEW POST

TOP OF THREAD FULL DISCUSSION
re: Hello! Nice article, but I have some notes. Children To describe a 'children', I prefer to use React.FC generic type. interface AnotherSpecificP...
 

Thanks for these! The React.ComponentProps<typeof Component> looks especially useful for passing props down without needing to import the Props interface of the child component.

code of conduct - report abuse