We should remove React.FC / React.FunctionComponent from the codebase.
It was removed from the TypeScript template of create-react-app to avoid inciting to use it.
More details in the GitHub issue: https://github.com/facebook/create-react-app/pull/8177/
In particular:
children props implicitly added, even when we don't want it
What's going on?
We should remove
React.FC
/React.FunctionComponent
from the codebase.It was removed from the TypeScript template of create-react-app to avoid inciting to use it. More details in the GitHub issue: https://github.com/facebook/create-react-app/pull/8177/
In particular:
children
props implicitly added, even when we don't want itPossible Implementation