DEV Community

Discussion on: ⚛️ React: Hooks vs. Render Props vs. Higher-Order Components 👨‍🔬

Collapse
 
dance2die profile image
Sung M. Kim

Other problems with HoC are,

  1. Hard to get it right (displayName, static method hosting etc)
  2. Major PIA to get types right in TypeScript.