A chapter-by-chapter course

鈿涳笍 React Beginner Book

Learn React from zero, in plain language, following the structure of the official react.dev/learn docs. Every chapter has small examples you can type into your own project.

How to use this book
  • Read the chapters in order. Each one builds on the one before. If your JavaScript is rusty, start with Appendix A: JavaScript Refresher.
  • Type the examples yourself in sample-test-react/src/App.jsx (run npm run dev). Typing beats copy-pasting for learning.
  • Each chapter has a "More examples" section and 10 exercises (150 in total), labelled 馃煝 easy, 馃煛 medium or 馃敶 hard. Try each one before you open its solution.
  • Each chapter ends with links to the matching official docs pages for deeper reading.
  • Want more JavaScript practice? The 馃З Problem Set has 100 language-neutral problems with exact tests.

Part 1 路 Start here

Part 2 路 Describing the UI

Part 3 路 Adding Interactivity

Part 4 路 Managing State

Part 5 路 Escape Hatches

Part 6 路 Putting it together

Appendix, Assessment & Practice

Also see Your earlier notes, Chapter 1: React Basics, summarise the concepts you used in sample-test-react before starting this book.