Skip to content
Tech Atlas, home
Search
Esc
  • All roadmapsBrowse every learning path
  • ExploreFind a technology area
  • ProjectsGuided projects and builds
  • My AtlasYour learning dashboard
Practice build · Frontend and the browser

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 tutorial

Why 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

Recommended on Frontend Engineer.

Checkpoints

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.

  1. Checkpoint 1Self-check

    Render

    Done when: JSX compiled with your createElement renders a nested tree to the DOM.

  2. 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.

  3. Checkpoint 3Self-check

    Keys

    Done when: Reordering a keyed list moves DOM nodes instead of recreating them, and text typed into inputs is kept.

  4. 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.
Follow a tutorial

Step-by-step guides

Pick one in a language you know (tutorial languages: JavaScript). They open on the author’s site.

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.