React

1 course · 62 lessons

0 of 62 lessons complete0%

React Foundations

11 modules · 62 lessons

Rendering & JSX

7 lessons
  1. Your first componentYour first component
  2. Expressions in JSXExpressions in JSX
  3. Passing propsPassing props
  4. Conditional renderingConditional rendering
  5. Lists with map and keyLists with map and key
  6. Document metadataDocument metadata
  7. Resource preloadingResource preloading

State

7 lessons
  1. Counting with useStateuseState
  2. Updating state with a functionFunctional state updates
  3. Updating objects and arraysImmutable state updates
  4. Lifting state upLifting state up
  5. Controlled inputsControlled inputs
  6. Modelling state with useReducerModelling state with a reducer
  7. Subscribing to an external storeSubscribing to an external store with useSyncExternalStore

Effects & Refs

8 lessons
  1. useRef without re-renderinguseRef without re-render
  2. Running an effect after renderuseEffect after render
  3. Effect dependencies and cleanupEffect dependencies and cleanup
  4. useRef for DOM accessuseRef for DOM access
  5. Separating events from effectsuseEffectEvent
  6. Measuring layout before paintuseLayoutEffect
  7. Exposing a custom ref handleuseImperativeHandle
  8. Ref as a propref as a prop

Composition

6 lessons
  1. The children propThe children prop
  2. Composition vs propsComposition vs props
  3. Sharing data with contextContext
  4. Context as its own providerContext as provider
  5. Catching render errorsError boundaries
  6. Extracting a custom hookCustom hooks

Performance

5 lessons
  1. Memoising a valueuseMemo
  2. Memoising a functionuseCallback
  3. Skipping re-renders with React.memoReact.memo
  4. Measuring renders with ProfilerProfiler
  5. The React CompilerThe React Compiler

Concurrent Rendering

6 lessons
  1. Marking updates as transitionsuseTransition
  2. Starting a transition without the hookstartTransition
  3. Deferring a valueuseDeferredValue
  4. Showing a fallback with SuspenseSuspense
  5. Loading a component on demandlazy
  6. Hiding and restoring with ActivityActivity

Actions & Forms

4 lessons
  1. Handling a form with a function actionForm actions
  2. Reading the result of an actionuseActionState
  3. Showing the result before it is saveduseOptimistic
  4. Knowing when a form is submittinguseFormStatus

Async Data

2 lessons
  1. Reading a promise with useuse() with a promise
  2. Reading context with useuse() with context

TypeScript

10 lessons
  1. Typing component propsTyping props
  2. Writing a generic componentGeneric components
  3. Reusing a native element's propsComponentProps
  4. Modelling state as a unionDiscriminated union state
  5. Typing hook stateTyping hook state
  6. Typing event handlersTyping events
  7. Typing refsTyping refs
  8. Typing contextTyping context
  9. Typing childrenTyping children
  10. A polymorphic `as` propA polymorphic `as` prop

Accessibility

2 lessons
  1. Labelling a form controlAccessible labels
  2. Announcing dynamic updatesLive regions

Robustness & DX

5 lessons
  1. Why your component renders twiceStrict Mode
  2. Rendering outside the tree with a portalPortals
  3. Generating stable unique idsuseId
  4. The Rules of ReactThe Rules of React
  5. Upgrading to React 19The React 19 upgrade