r/reactjs • • 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?

17 Upvotes

74 comments sorted by

View all comments

Show parent comment

1

u/DecentStay1066 Feb 18 '22 edited Feb 18 '22

Probably your teams don't have a clear mindset of how the components of a website is organized. If you love to write everything in global context, it works, the one follows you sucks. Especially you list out those Vue, Angular2, svelte, backbone js, riot... more complex? if you code well, everything should be simple. Therefore, simple as ReactJS does not fit you.

Besides, React hook code can be easily translated to React Classes, but not reversable, why? because those stupid magic cannot do all the controls that a React class does.

If you find that React class is harder to read than React Hook, your concepts to React hooks is not complete, you should study it once again more completely.