Open ViktorZener opened 4 years ago
React.FC (FunctionalComponent) will just wrap your regular function with react specifics, like it can have prop children and it inherits from React children type already. If you want more specific props (which i prefer) you go with regular interfaces for props and you specify what type children can have, single element, multiple, ...you dont care .. and so on
React.FC<{}> just means has no other props then regular react stuff.
React.FC<{ isReady: boolean }>
|| interface MyProps { isReady: boolean } -> React.FC<MyProps>
would be the definition for more props