Hacker News new | ask | show | jobs
by simon83 1571 days ago
I've been using React since around 2016 and when Hooks were introduced I played around with it but didn't like it at all exactly because of the reasons mentioned in this article. Sure it reduced quite a bit of boilerplate code that came with class based components and enabled better code re-usability outside of class inheritance or mixins but the disadvantages were too big for me personally to really consider using Hooks in a "greenfield" setting.

In my current project I'm using Vue with Composition API which gave me the exact same "aha" moment the author of this article had with SolidJS. Vue + Composition API is way more similar to SolidJS in principle than React + Hooks.

1 comments

Pure function components in React with MobX for state management rather than the hooks system has worked out quite well for me.

I do, however, keep finding myself wondering about jumping to Vue and VueX instead.

Ask me in five years, I guess.