Under-the-hood of React Hooks

Craig Taub
ITNEXT
Published in
7 min readApr 15, 2020

--

React is filled with interesting design patterns, when Hooks were introduced it cleaned up many of the issues people had with the more arguably frustrating features such as classes and lifecycle methods. Today we will have a look at building our own React engine with Hooks, so we can understand the mechanisms at work for useState and useEffect.

We will not be covering Fibre, reconciliation or the change detection mechanisms.

This is part of my “under-the-hood of” series:

--

--