Hook Smith — React Brass key cutter: 20 levels extracting component logic into custom hooks, checked with real react-hooks lint, iframe behavior parity and a render count.
Lessons this game drills Custom Hooks : A custom hook is a function starting with use that calls other hooks, such as useState, to reuse stateful logic (logic that holds state) without copying code…useRef : The useRef(initial) hook makes a box { current: initial } (called a ref) that's the same on every render. Read and change it through .current. Changing…useEffect in Depth : The function an effect returns is its cleanup function. React runs it when the component unmounts (is removed from the page), and before the effect runs again…State with useState : State is data a component remembers between renders. const [count, setCount] = useState(0) keeps state with a starting value of 0. count is the value in this…useMemo & useCallback : Every render runs all the code in the component again. useMemo(() => calculate(n), [n]) remembers the value of a heavy calculation, and only calculates it…Component Crafter : Build React components: 10 levels of props, state, effects and conditional rendering. The most effective React fundamentals game around.Hook Choreography : Order React hooks so they don't collide during render: 14 levels of the rules of hooks, call order and reconciliation.Storekeeper : Market storekeeper: 22 levels of state management: store, selectors, actions, render budget. Real React@19 in an iframe with N consumers and a render meter.Gapura Router : Test the Watu Lawang village site on the post’s phone: routes, loaders, errors, lazy and portals.Diff Detective : Mark the DOM nodes React touches at commit, on the lantern boards of Pak Yusuf's bakery: 14 levels of reconciliation, keys and render bailouts.