You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Recommendations through the CRA project (create-react-app), and approved by the React core maintainers, is to avoid using React.FC and React.FunctionComponent types.
Using these type definitions makes it confusing as to which components accept children, breaks generics, and really doesn't provide meaningful benefits; it's not even shorter syntax. See here for more details and discussion: facebook/create-react-app#8177
Describe the solution you'd like
For example, this:
Is your feature request related to a problem? Please describe.
Recommendations through the CRA project (create-react-app), and approved by the React core maintainers, is to avoid using
React.FC
andReact.FunctionComponent
types.Using these type definitions makes it confusing as to which components accept children, breaks generics, and really doesn't provide meaningful benefits; it's not even shorter syntax. See here for more details and discussion: facebook/create-react-app#8177
Describe the solution you'd like
For example, this:
... can be replaced with this:
Describe alternatives you've considered
N/A
Additional context
This information is also pinned within the semi-official Reactiflux Discord community, which is frequented by Redux, Redux-Saga, React-Bootstrap, RxJS, and other major React libraries.
The text was updated successfully, but these errors were encountered: