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 experienceModule 1
Getting Started
5 Lessons- What Is React? A Beginner's Introduction to ReactLearn what React is, why developers use it to build user interfaces, how components work, and how React differs from plain JavaScript DOM code.
- Set Up React with Vite: Create and Run Your First React AppInstall Node.js, create a React project with Vite, start the development server, and fix the most common setup errors step by step.
- React Project Structure: Understand Every File Vite CreatesExplore the files and folders of a Vite React project, learn what main.jsx, App.jsx, index.html and package.json do, and which files you should edit.
- Create Your First React Component: Build a Profile CardLearn what a React component is, how to create, export, import and reuse function components, and build a simple profile card step by step.
- JSX in React: Write HTML-Like Markup Inside JavaScriptLearn JSX rules step by step: expressions in curly braces, className, style objects, Fragments, self-closing tags, comments, and common JSX errors.
Module 2
Components and Props
5 Lessons- React Props: Pass Data to ComponentsLearn how React props work: pass data to components, read and destructure props, set default values, and why props are read-only.
- React Children and Composition: Build Flexible ComponentsLearn the React children prop, build wrapper components like Card and Layout, pass JSX as props, and split large components into smaller ones.
- Render Lists in React with map() and KeysLearn how to render arrays in React with map(), why every list item needs a stable key, how to filter lists, and how to fix the missing key warning.
- Conditional Rendering in React: if, Ternary and &&Learn how to show or hide UI in React with if statements, the ternary operator, && and null, and how to avoid the common 0 bug.
- Styling React Components: CSS Files, Inline Styles, CSS ModulesLearn how to style React components with imported CSS files, conditional class names, inline style objects and scoped CSS Modules in a Vite project.
Module 3
Events and State
5 Lessons- Handling Events in React: onClick, onChange and MoreLearn how to handle events in React: onClick, onChange and onSubmit, the event object, passing arguments, preventDefault, and passing handlers as props.
- useState in React: Make Components InteractiveLearn React state with useState: why normal variables do not update the screen, how to build a counter and a toggle, and the rules of Hooks.
- Update Objects and Arrays in React State SafelyLearn how to update React state correctly: updater functions, snapshots, and immutable updates for objects and arrays using spread, map and filter.
- React Forms: Controlled Inputs, Checkboxes and SelectsBuild React forms with controlled inputs: connect text fields, checkboxes, radios, selects and textareas to state, handle submit, and reset the form.
- React Form Validation and Error MessagesLearn how to validate React forms: write a validate function, show errors after blur and submit, add accessible messages, and show a success state.
Module 4
Build Along: Beginner Project
1 LessonsModule 5
Thinking in React
7 Lessons- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
Module 6
Hooks and Effects
7 Lessons- 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.
- useEffect Cleanup and Dependency Arrays ExplainedLearn useEffect cleanup, why StrictMode runs Effects twice, and how to fix stale closures, object dependencies and race conditions.
- 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.
- 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.
- 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.
- 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.
- 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.
Module 7
Data and APIs
5 Lessons- Fetch Data in React: Loading, Error and Empty StatesLearn data fetching in React with useEffect: loading, error and empty states, response.ok, AbortController cleanup, a retry button and a useFetch hook.
- CRUD with APIs in React: Create, Update and Delete DataLearn CRUD with APIs in React: POST, PATCH and DELETE with fetch, pending and error states, avoiding stale state after await, and keeping the UI in sync.
- Production-Ready API Handling: Races, Pagination and RetriesHandle real-world API problems in React: race conditions, request cancellation, timeouts, safe retries, pagination, debounced search and simple caching.
- Data Fetching Libraries: When to Use TanStack QueryLearn what data fetching libraries solve and how to use TanStack Query: useQuery, caching, staleTime, retries, keepPreviousData pagination and useMutation.
- Project 3: Build a Dashboard That Loads API DataBuild a React product dashboard: parallel API requests, stat cards, category bars, search, category filter, pagination, and separate loading and error states.
Module 8
Routing
4 Lessons- Single-Page Apps and Client-Side Routing: URLs Without ReloadsUnderstand single-page apps: change the URL without a reload using the History API, build a tiny router with pushState and popstate, and fix refresh 404s.
- React Router Basics: Build Multi-Page AppsLearn React Router v8 step by step: install it, set up BrowserRouter, define Routes, use Link and NavLink, redirect with Navigate, navigate with useNavigate.
- React Router: Nested Layouts, URL Params and Search ParamsLearn nested routes with Outlet, dynamic :id params with useParams, search params with useSearchParams, and keyboard focus handling on page change.
- React Router: Loading Data and Protecting RoutesProtect routes in React Router with a RequireAuth layout, redirect to login and back, and get a first look at loader functions in data mode.
Module 9
Security and Authentication
3 Lessons- React Security Fundamentals: XSS, Unsafe HTML and Exposed SecretsLearn the basics of React security: how XSS works, why dangerouslySetInnerHTML is risky, unsafe URLs, why Vite env variables are public, and safe token storage.
- Authentication and Authorization in React ApplicationsBuild login and logout in React: sessions, a startup loading state, protected and role-based routes, 401 and 403 handling, and server-side access checks.
- Project 4: Build a Multi-Page Notes App with CRUDBuild a multi-page React notes app: login, protected routes, context with a reducer, search params, create, edit and delete, and server ownership checks.
Module 10
React 19 Features
4 Lessons- Form Actions and useActionState in React 19Master React 19 form actions and useActionState: handle async submissions, pending states, optimistic updates, and form resetting without manual state.
- useFormStatus and useOptimistic: Better Form UXBuild responsive React 19 forms with useFormStatus and useOptimistic: disable buttons in deep children and show instant UI updates before server confirmation.
- The use API and Suspense for Data in ReactMaster React 19's use API: read promises and context conditionally, eliminate useEffect data fetching boilerplate, and integrate with Suspense.
- React 19 Component Changes: ref as Prop, Metadata and PreloadingExplore clean React 19 component enhancements: use ref as a regular prop without forwardRef, render document metadata natively, and preload external resources.
Module 11
Performance and Advanced Rendering
8 Lessons- 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.
- useTransition and useDeferredValue: Keep the UI ResponsiveMaster React concurrent features with useTransition and useDeferredValue: prioritize user input, deprioritize heavy renders, and eliminate typing lag.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
Module 12
Testing, Accessibility and Deployment
8 Lessons- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
Module 13
Professional Architecture
4 Lessons- React App Architecture: Folder Structure and Code OrganisationMaster scalable React architecture: feature-based folder organization, clean separation of UI and business logic, barrel files, and dependency rules.
- State Management in React: Context, Reducers and External StoresMaster React state choices: learn when to use useState, useReducer, Context, and external stores like Zustand and useSyncExternalStore.
- React Component Patterns: Compound Components and Custom HooksDesign flexible, reusable React APIs using compound components, headless custom hooks, polymorphic components, and controlled versus uncontrolled patterns.
- Rendering Strategies: CSR, SSR, SSG and HydrationUnderstand modern React rendering: CSR, SSR, SSG, hydration, React Server Components (RSC), and React 19 prerender and resume APIs.