Home / Learn React
Learn React JS: free tutorial with live examples
Learn React 19 step by step in simple English. Every lesson explains what a feature is, why we use it, how it works and where it is used, with a diagram and live examples you can edit. 70 lessons and 115 live examples.
How to learn:Go in order from the top. Read the theory, edit the example and break it on purpose, then do the quiz. React runs inside your browser here, so nothing to install.
Getting started
What is React?2 live examplesSet Up a React Project with ViteRead and learnJSX: Markup Inside JavaScript4 live examplesComponents: The Building Blocks2 live examplesProps: Pass Data to Components4 live examples
Core ideas
Conditional Rendering4 live examplesLists and Keys3 live examplesHandling Events4 live examplesState with useState4 live examplesUpdating State Correctly4 live examplesForms and Controlled Inputs4 live examplesStyling React Components3 live examplesHow React Renders2 live examples
Hooks
What Are Hooks? Rules of Hooks1 live examplesuseEffect: Side Effects4 live examplesYou Might Not Need an Effect3 live examplesuseRef: Refs and the DOM4 live examplesuseMemo, useCallback and memo2 live examplesuseReducer: Complex State1 live examplesContext: Share Data Without Props Drilling2 live examplesCustom Hooks4 live examplesuseTransition and useDeferredValue2 live examplesMore Hooks: useId, useLayoutEffect, useSyncExternalStore, useImperativeHandle3 live examples
React 19 and modern React
Actions and Forms in React 193 live examplesuseOptimistic: Instant Feedback1 live examplesThe use API2 live examplesSuspense and lazy Loading2 live examplesError Boundaries1 live examplesPortals: Render Outside the Parent1 live examplesWhat Is New in React 193 live examplesServer Components and Server Actions (Overview)Read and learnReact Compiler and PerformanceRead and learn
Patterns and real world
Lifting State Up and Composition2 live examplesState Management: Context, Zustand and Redux Toolkit1 live examplesFetching Data1 live examplesRouting with React RouterRead and learnPerformance Techniques1 live examplesTesting React ComponentsRead and learnReact with TypeScriptRead and learnAccessibility in React1 live examplesBuild and Deploy on HostingerRead and learn
Deeper into React
Built-in Components: Fragment, StrictMode, Profiler, Suspense, Activity3 live examplesHTML Elements and Props in JSX2 live examplesJSX Rules in Depth1 live examplesThe Rules of React2 live examplesControlled and Uncontrolled Inputs2 live examplesForm Validation and Libraries1 live examplesStyling Options: CSS Modules, Tailwind and CSS-in-JS2 live examplesAnimation in React2 live examplesSaving Data: localStorage and URL State1 live examples
Projects
Project 1: Todo App1 live examplesProject 2: Shopping Cart1 live examplesProject 3: Quiz App1 live examplesProject 4: Tic-Tac-Toe1 live examplesProject 5: Search with Debounce and Loading States1 live examplesProject 6: Notes App with Reducer and Search1 live examples
React with SQL and MySQL
React with SQL and MySQL: the Big Picture1 live examplesSQL Basics: CREATE, INSERT, SELECT, UPDATE, DELETE1 live examplesRelations, JOIN, Indexes and Transactions1 live examplesBuild the PHP + MySQL API with PDORead and learnCRUD in React: Read, Create, Update, Delete with fetch1 live examplesSearch, Sort and Pagination with MySQL1 live examplesSecurity: SQL Injection, Validation, Passwords, CSRF1 live examplesLogin, Register and Protected Pages with PHP Sessions1 live examplesDeploy React + PHP + MySQL on HostingerRead and learnProject 7: Notes App with React, PHP and MySQL1 live examples