r/reactjs • u/callensm • Oct 31 '18
Why the hate for React Hooks?
I've been seeing a lot of mixed feelings about React Hooks since it was announced and can't quite figure out why. Sure it's a deviation from the norm, but completely optional and certainly lowers the barrier to entry for new developers.
Can someone explain why all the negative feelings are rising about it?
19
Upvotes
View all comments
Show parent comment
1
u/pgrizzay Dec 31 '18
Well, I don't think you'll find hooks very useful, then. But to each their own :D
People mean many things when they say "composition over inheritance." Most of the time I find people describe mixins when asked to elaborate. These patterns are no better than typical subtype inheritance.
I prefer functional composition (a la HoCs and render props) which is made even easier with hooks and no classes.