React COMPLETE CURRICULUM

Learn React: Step by Step

Build modern web apps. Follow this structured course in order, read clear explanations, and practice examples in the built-in online editor.

66Structured Lessons
13Curriculum Modules
100%Free & Interactive

Course Curriculum

Follow each lesson in sequence for the best learning experience
Module 5

Thinking in React

7 Lessons
  1. Lifting State Up: Share State Between React ComponentsLearn how to lift state up in React: share state between sibling components through their common parent, pass handlers down, and keep one source of truth.
    Intermediate10 min read
  2. Choosing State Structure: Derived Data and Single Source of TruthLearn how to structure React state well: avoid contradictions, duplicates and redundant state, derive values during render, and keep props out of state.
    Intermediate11 min read
  3. How React Works Behind the Scenes: React, React DOM and JSXUnderstand what happens behind the scenes in React: the react and react-dom packages, what JSX compiles to, React elements, and how createRoot renders your app.
    Intermediate12 min read
  4. How React Renders: Trigger, Render, Commit and Re-rendersLearn the three steps of a React update: trigger, render and commit. Understand re-renders, pure rendering, batching and double renders in StrictMode.
    Intermediate12 min read
  5. Virtual DOM and Reconciliation: How React Updates the PageUnderstand how React compares the previous and next element trees, what reconciliation and the virtual DOM mean, and how React makes minimal DOM updates.
    Intermediate12 min read
  6. Component Identity and State Preservation: Position, Type and KeysLearn when React keeps or resets state: how position, component type and keys define identity, how remounting works, and how to avoid nested component bugs.
    Intermediate12 min read
  7. Project 2: Product List with Search, Filter and SortBuild a product browser in React with live search, category filter, in-stock toggle and sorting, using lifted state and derived data instead of extra state.
    Intermediate13 min read
Module 6

Hooks and Effects

7 Lessons
  1. useEffect in React: Run Side Effects After RenderingLearn useEffect step by step: what side effects are, when Effects run, how the dependency array works, and how to sync a component with the outside world.
    Intermediate12 min read
  2. useEffect Cleanup and Dependency Arrays ExplainedLearn useEffect cleanup, why StrictMode runs Effects twice, and how to fix stale closures, object dependencies and race conditions.
    Intermediate13 min read
  3. useEffectEvent and When You Do Not Need an EffectLearn when to use useEffectEvent and when you do not need useEffect: derived data, key resets, event handlers, effect chains and parent updates.
    Intermediate12 min read
  4. useRef in React: Refs, Focus and the DOMLearn useRef: store values without re-rendering, focus inputs, use ref as a prop in React 19, ref callbacks, and stable ids with useId.
    Intermediate12 min read
  5. useReducer in React: Manage Complex StateLearn useReducer step by step: write a pure reducer, dispatch actions, refactor a to-do app, and decide when useReducer is better than useState.
    Intermediate11 min read
  6. React Context: Share Data Without Prop DrillingLearn React Context: create a context, provide a value, read it with useContext, build a theme and user provider, and avoid re-render and overuse problems.
    Intermediate12 min read
  7. Custom Hooks in React: Reuse Stateful LogicLearn custom Hooks in React: useToggle, useLocalStorage, useWindowWidth and useDebounce, the rules to follow, and a to-do app that saves to localStorage.
    Intermediate14 min read
Module 11

Performance and Advanced Rendering

8 Lessons
  1. Code Splitting in React with lazy() and SuspenseMaster code splitting in React using lazy() and Suspense: reduce bundle size, load route and heavy components on demand, and measure bundle savings.
    Advanced7 min read
  2. useTransition and useDeferredValue: Keep the UI ResponsiveMaster React concurrent features with useTransition and useDeferredValue: prioritize user input, deprioritize heavy renders, and eliminate typing lag.
    Advanced8 min read
  3. memo, useMemo and useCallback: Measure Before You OptimiseMaster React memoisation: understand React.memo, useMemo, and useCallback, avoid premature optimisation, and learn when caching actually helps performance.
    Advanced8 min read
  4. React Compiler: Automatic Memoisation ExplainedDiscover the React Compiler: how automatic build-time memoisation works, configuring it in Vite, debugging optimizations, and when to opt out.
    Advanced6 min read
  5. ViewTransition in React: Animate Page and List ChangesMaster React 19.3's native ViewTransition: build smooth cross-fade, shared-element, and list reordering animations with zero heavy libraries.
    Advanced7 min read
  6. Activity and Fragment Refs: Preserve State and Observe GroupsMaster React 19 Activity and Fragment refs: preserve state and DOM elements offscreen without remounting, and attach refs to multiple elements.
    Advanced7 min read
  7. Error Boundaries in React: Handle Crashes GracefullyMaster React error boundaries: catch runtime JavaScript crashes, render friendly fallback UIs, log diagnostics, and recover with component resets.
    Advanced7 min read
  8. Portals and Accessible Modals in ReactMaster React portals and accessible modals: render dialogs outside DOM clipping with createPortal, manage keyboard focus traps, and handle Esc key closing.
    Advanced7 min read
Module 12

Testing, Accessibility and Deployment

8 Lessons
  1. React with TypeScript: Typing Props, State and EventsMaster React with TypeScript: type components, props, state, event handlers, and custom hooks with compile-time type safety using the react-ts template.
    Advanced7 min read
  2. Test React Components with Vitest and Testing LibraryMaster component testing in React with Vitest and React Testing Library: render components, query by role, fire user events, and test async UI.
    Advanced9 min read
  3. Integration Tests and API Mocking in ReactMaster integration testing and API mocking in React: mock network requests with MSW v2, test end-to-end component flows, and verify error recovery states.
    Advanced8 min read
  4. End-to-End Testing React Apps with PlaywrightMaster end-to-end testing in React with Playwright: configure headless browsers, test authentication and CRUD flows, and debug tests with UI mode.
    Advanced8 min read
  5. React Accessibility: Semantic HTML, Focus and ARIABuild accessible React applications: master semantic HTML, focus management with refs, keyboard navigation traps, ARIA attributes, and axe-core testing.
    Advanced8 min read
  6. Debug React Apps with React DevTools and the ProfilerMaster React DevTools: inspect component trees, edit live props and state, profile render performance, identify re-renders, and fix common warnings.
    Advanced9 min read
  7. Deploy a React App: Build, Environment Variables and HostingDeploy React apps to production: build optimized bundles with Vite, secure VITE_ environment variables, configure SPA fallback routing, and host for free.
    Advanced8 min read
  8. Production Debugging and Monitoring for React AppsMaster production debugging and monitoring in React: configure source maps, capture errors with createRoot callbacks and boundaries, and track Web Vitals.
    Advanced8 min read