TLDR Web Dev · ARTICLES & TUTORIALS

LET'S WRITE REACT HOOKS FROM SCRATCH

playfulprogramming.com6 min read

Summary from the TLDR Web Dev newsletter

This article goes over how React Hooks store and persist state within functional components. It begins with a simplified explanation using arrays and then goes into the actual implementation using a linked list within the virtual DOM's component tracking. Code examples are provided to show how `useState` could be implemented from scratch using both arrays and linked lists.