Phase 04Two hundred lines of framework189 of 434
Hooks in your framework
useState, useEffect and a scheduler that batches. About sixty lines, and the batching is the part that teaches you something.
Build55 minAI pair
Build this in your own editor
This one runs on your machine rather than in the browser workbench. Work to the outcomes below, then come back and mark it complete.
You should now be able to
- Implement state that survives a re-render
- Batch multiple state updates into one render pass
Loading…