I love React Hooks
After reading numerous articles (starting with the docs), I&#x27;m still not convinced, and will not be using React Hooks any time soon. Some of the things I do not love:<p>- Magic, in the unfavorable sense: if hooks were implemented in an indepedent library, just hearing that they &quot;must be called in the same order every time&quot; and &quot;cannot be used inside conditional statements&quot; should make anyone wary.<p>- Scope creep: if anything, I wish React focused on <i>reducing</i> its size and API surface.<p>- Entanglement: related to the point above, the goals of hooks would have been better served with a separate, tiny library that doesn&#x27;t need to know anything about React, and usable anywhere else, with plain functions that can be tested or reused independently.<p>Well, the topic deserves a deeper criticism than &quot;it feels wrong&quot;, so I hope someone can write a worthy article called &quot;Why I Do Not Love React Hooks&quot;, with an example of a better, alternative solution.<p>I hesitate to bring up a cliché, but it&#x27;s starting to feel like React is the new jQuery. I&#x27;m already trying to anticipate what comes after React, in which case I want my code to depend on the smallest possible API surface area.<p>But then again, maybe it&#x27;s my wishful thinking that we would move towards &quot;universal components&quot; (using dependency injection to pass in React or other view renderers like Web Components). Since much of the JS ecosystem seems to be going &quot;all in&quot; on React, perhaps I should surrender to its current. As long as I continue to use React, it looks like there&#x27;s no escape from its hooks..<p>EDIT: I should add that the above is just my opinion at the moment, and I&#x27;m open to changing my mind. Who knows, I may unwillingly start using them (since everyone else seems to be), and come to love hooks after all.