<story><title>I love React Hooks</title><url>https://vijayt.com/post/react-nugget-2-why-do-i-love-react-hooks/</url></story><parent_chain></parent_chain><comment><author>kristiandupont</author><text>Contrary to some commenters here, I think React is just about the best thing that has happened to UI programming in recent memory.&lt;p&gt;Everything I tried before it (jQuery, Backbone, Knockout, Angular, Meteor (with Handlebars)) felt like it fell short or, in the case of the databinding-oriented ones, like a broken abstraction. I get a similar feeling when looking at Vue though I have no experience so I might be wrong.&lt;p&gt;I too am a bit skeptical about hooks making what looks like pure functions act like stateful ones. I am not using hooks yet but besides from Dan Abramovs excellent articles about their rationale, I think I will look at them like a new paradigm, only using a syntax that we know from something else. In fact, I wouldn&amp;#x27;t be surprised if I some time in the future will be using React to write state machines for something that doesn&amp;#x27;t have anything to do with UI, where &amp;quot;rendering&amp;quot; composes state related to something else entirely. I could see hooks being a game changer here.</text></comment>
<story><title>I love React Hooks</title><url>https://vijayt.com/post/react-nugget-2-why-do-i-love-react-hooks/</url></story><parent_chain></parent_chain><comment><author>lioeters</author><text>After reading numerous articles (starting with the docs), I&amp;#x27;m still not convinced, and will not be using React Hooks any time soon. Some of the things I do not love:&lt;p&gt;- Magic, in the unfavorable sense: if hooks were implemented in an indepedent library, just hearing that they &amp;quot;must be called in the same order every time&amp;quot; and &amp;quot;cannot be used inside conditional statements&amp;quot; should make anyone wary.&lt;p&gt;- Scope creep: if anything, I wish React focused on &lt;i&gt;reducing&lt;/i&gt; its size and API surface.&lt;p&gt;- Entanglement: related to the point above, the goals of hooks would have been better served with a separate, tiny library that doesn&amp;#x27;t need to know anything about React, and usable anywhere else, with plain functions that can be tested or reused independently.&lt;p&gt;Well, the topic deserves a deeper criticism than &amp;quot;it feels wrong&amp;quot;, so I hope someone can write a worthy article called &amp;quot;Why I Do Not Love React Hooks&amp;quot;, with an example of a better, alternative solution.&lt;p&gt;I hesitate to bring up a cliché, but it&amp;#x27;s starting to feel like React is the new jQuery. I&amp;#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.&lt;p&gt;But then again, maybe it&amp;#x27;s my wishful thinking that we would move towards &amp;quot;universal components&amp;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 &amp;quot;all in&amp;quot; on React, perhaps I should surrender to its current. As long as I continue to use React, it looks like there&amp;#x27;s no escape from its hooks..&lt;p&gt;EDIT: I should add that the above is just my opinion at the moment, and I&amp;#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.</text></comment>