I disagree with the point you made about not using React.FC. One big reason I always use it now is that it gives you the children prop for free. So my code went from looking like this:
const MyComponent = ({ children} : {children: ReactNode}) => {...}
to just this
const MyComponent: React.FC = ({ children }) => {....}
Small change but accross hundreds of components it starts making a difference.
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I disagree with the point you made about not using React.FC. One big reason I always use it now is that it gives you the children prop for free. So my code went from looking like this:
to just this
Small change but accross hundreds of components it starts making a difference.