Flexy
Light mode
Sound on
Account
Rendering & JSX
Your first component
Expressions in JSX
Passing props
Conditional rendering
Lists with map and key
Document metadata
Resource preloading
State
Counting with useState
Updating state with a function
Updating objects and arrays
Lifting state up
Controlled inputs
Modelling state with useReducer
Subscribing to an external store
Effects & Refs
useRef without re-rendering
Running an effect after render
Effect dependencies and cleanup
useRef for DOM access
Separating events from effects
Measuring layout before paint
Exposing a custom ref handle
Ref as a prop
Composition
The children prop
Composition vs props
Sharing data with context
Context as its own provider
Catching render errors
Extracting a custom hook
Performance
Memoising a value
Memoising a function
Skipping re-renders with React.memo
Measuring renders with Profiler
The React Compiler
Concurrent Rendering
Marking updates as transitions
Starting a transition without the hook
Deferring a value
Showing a fallback with Suspense
Loading a component on demand
Hiding and restoring with Activity
Actions & Forms
Handling a form with a function action
Reading the result of an action
Showing the result before it is saved
Knowing when a form is submitting
Async Data
Reading a promise with use
Reading context with use
TypeScript
Typing component props
Writing a generic component
Reusing a native element's props
Modelling state as a union
Typing hook state
Typing event handlers
Typing refs
Typing context
Typing children
A polymorphic `as` prop
Accessibility
Labelling a form control
Announcing dynamic updates
Robustness & DX
Why your component renders twice
Rendering outside the tree with a portal
Generating stable unique ids
The Rules of React
Upgrading to React 19
React Foundations
Start with Your first component