CONTACT US

TypeScript + React: Why I don’t use React.FC

  • You type a function, not its arguments
  • FC<> always imply children
  • Easier to move to Preact
  • React.FC<> breaks defaultProps
  • Future-proof

 

Article link copied

Close button