New! The first O'Reilly report on the JAMstack. Get the free eBook

Blog

Exploring the JAMstack, static sites, and the future of web development. Subscribe to our newsletter to make sure you don't miss anything.

All posts

Deep dive: How do React hooks really work?

In this article, we reintroduce closures by building a tiny clone of React Hooks. This will serve two purposes - to demonstrate the effective use of closures in building our React Hooks clone itself, and also to implement a naive mental model of how Hooks work under the hood. Finally, we …

By swyx in Opinions & Insights