Build your own React
A tiny React: JSX to elements, a virtual DOM, reconciliation, function components and the useState hook.
- Intermediate
- About 6–12 h
- 4 checkpoints
- 3 tutorials · JavaScript
Pick a tutorial, then check yourself at each checkpoint. Work in any language you like.
Choose a tutorialWhy build it
React's rules about keys, immutable state and hooks make sense once you have written the reconciler, and you will know what a re-render costs.
You will be able to
- Turn JSX into element objects with createElement.
- Diff a virtual DOM and update only what changed.
- Split rendering into interruptible units of work.
- Implement useState and explain the rules of hooks.
Skills it exercises
- React Components & State
- DOM Manipulation & Events
- How Browsers Render Pages
- JavaScript Foundations
- Effects & Data Fetching in React
Recommended on Frontend Engineer.
How you know you are there
Work in any language. Each checkpoint ends with something you can run or observe, so you can check it yourself.
- Checkpoint 1Self-check
Render
Done when: JSX compiled with your createElement renders a nested tree to the DOM.
- Checkpoint 2Self-check
Reconciliation
Done when: After a state change, a test shows unchanged DOM nodes keep their identity and only changed attributes are touched.
- Checkpoint 3Self-check
Keys
Done when: Reordering a keyed list moves DOM nodes instead of recreating them, and text typed into inputs is kept.
- Checkpoint 4Self-check
Hooks
Done when: A counter component with useState works, and two counters keep independent state.
Stretch goals
- useEffect with cleanup.
- Event delegation at the root.
Step-by-step guides
Pick one in a language you know (tutorial languages: JavaScript). They open on the author’s site.
- JavaScript
Build your own React(external site)
JavaScript: Didact, from createElement to fibers and hooks in eight steps.
- JavaScript
A DIY guide to build your own React(external site)
Code for the same series.
- JavaScript
WTF is JSX (Let's Build a JSX Renderer)(external site)
What JSX compiles to, with a renderer in a few lines.
Practice builds are self-paced: Tech Atlas does not track them or count them as evidence. To show a skill, take its knowledge check from the skill page.
Tutorials come from codecrafters-io/build-your-own-x (CC0, snapshot of 2026-07-14, commit aa17439; links checked on 2026-10-19). Each tutorial belongs to its author and keeps its own licence; Tech Atlas links to it and does not host it. Briefs, checkpoints and the mapping to skills are Tech Atlas editorial drafts.