React Hooks: Has React Jumped the Shark?

Ryan Carniato
Vue.js Developers
Published in
11 min readFeb 28, 2019

--

‘Mexico Lake Man Wakeboard’ from pixabay.com

In a recent blog post Dan Abramov claims that React hasn’t jumped the shark with React Hooks. While I agree that Hooks are far from irrelevant and actually offer a better developer experience, I have to pose the question:

Is React trying too hard to be what it’s not?

It’s a similar question to what Dan poses in his post. But instead of focusing on how Hooks provide a more idiomatic approach to programming in React, I want to look at how Hook’s inspiration Fine Grained changed detection hold the key to all the shortcomings of React Hooks. I am going to assume at this point you are at least familiar with React Hooks, and I strongly recommend reading Dan’s aforementioned post to understand the motivation for this topic. Although if you’ve used React Hook’s yourself you probably have already experienced it.

Ironically, Hooks FAQ has a link to prior art that makes no mention of it, but if you go back to the early 2010’s in the wild west of Front End Javascript, where jQuery was still king, and AngularJS was starting to pick up steam, before anyone outside of Facebook was aware of React, the concept of fine grained changed detection was growing strong. Libraries like KnockoutJS and EmberJS employed an eerily similar pattern in their libraries to manage their state change. If anything it was Reacts introduction of simple POJO like…

--

--

Ryan Carniato
Vue.js Developers

FrontEnd JS Performance Enthusiast and Long Time Super Fan of Fine Grained Reactive Programming. Member of Marko Core Team. Author of SolidJS UI Library.