All tutorials
React tutorials
Build modern UIs — components, JSX, props & state, hooks, effects, data fetching, lists and controlled forms.
- Chapters
- 16
- Total reading
- 3h 58m
- Level
- Beginner to Advanced
Chapters
- Chapter 114 min readStart
Components & JSX
What React is, how to spin up a project, and the two ideas everything rests on — components and JSX. - Chapter 215 min readStart
Props & State
Pass data into components with props, remember changing data with useState, and understand what triggers a re-render. - Chapter 316 min readStart
Hooks & Effects
The rules of hooks, running side effects with useEffect, fetching data, and sharing logic with custom hooks. - Chapter 415 min readStart
Lists, Events & Forms
Render lists with keys, handle events, build controlled form inputs, and lift state up to share it between components. - Chapter 515 min readStart
Rendering Patterns
Render UI conditionally and from data cleanly — the patterns for showing, hiding, listing and composing elements the React way. - Chapter 616 min readStart
Forms & Controlled Components
Handle real forms — controlled inputs, one handler for many fields, validation and submission, plus when to reach for a form library. - Chapter 715 min readStart
useReducer & Complex State
Manage complex, related state with a reducer — actions, the dispatch pattern, and when it beats multiple useState calls. - Chapter 815 min readStart
Context & Global State
Share data across the tree without prop drilling — createContext, providers, useContext, and how to structure global state. - Chapter 914 min readStart
Refs & the DOM
Reach outside React's declarative model when you must — useRef for DOM access and mutable values, plus forwarding refs. - Chapter 1015 min readStart
Performance: memo, useMemo & useCallback
Understand what causes re-renders and use React.memo, useMemo and useCallback deliberately — without premature optimisation. - Chapter 1115 min readStart
Custom Hooks in Depth
Extract and share stateful logic — the rules, real-world custom hooks (useToggle, useLocalStorage, useFetch) and how to compose them. - Chapter 1216 min readStart
Data Fetching Patterns
Load remote data reliably — loading and error states, avoiding race conditions and leaks, and why a data library often beats useEffect. - Chapter 1315 min readStart
Routing with React Router
Turn a single-page app into many pages — routes, links, URL params, nested layouts and programmatic navigation. - Chapter 1414 min readStart
Error Boundaries & Suspense
Stop one broken component crashing the app with error boundaries, and code-split with lazy loading and Suspense. - Chapter 1513 min readStart
Styling in React
The ways to style components — plain CSS, CSS Modules, utility classes, CSS-in-JS — and how to apply classes conditionally. - Chapter 1615 min readStart
Patterns & Best Practices
Tie it together — component composition, project structure, the habits of maintainable React, and the mistakes to avoid.
