Skip to content
JS

State Management at Scale in React & Next.js

Course on Master.dev by David Khourshid

View on Master.dev (opens in a new tab)
4 h 51 min
LengthVideo runtime
Subscription
Price modelMaster.dev plan
33
Lessons
Jul 2025
Published7 Jul 2025

About this course

Description from Master.dev

Solve challenging state management problems and build applications that reliably scale with your team. Recognize anti-patterns and learn complex state optimizations with data normalization, form data, and reducers. Refactor messy data stores to leverage an event-driven approach and dive into advanced use cases with URL parameters and syncing with external data stores.

What it covers

33 lessons
  1. 01

    Introduction

    1. Introduction
    2. Course Overview
  2. 02

    React State Management Anti-Patterns

    1. Deriving State Anti-Pattern
    2. useState & Redundant State Anti-Pattern
    3. State Anti-Pattern Exercise
  3. 03

    AI State Modeling

    1. Incidental vs. Accidental Complexity
    2. Essential Modeling Diagrams
    3. Application Flow Exercise
  4. 04

    Optimizing State Management

    1. Best Practices for State Optimization
    2. Finite States
    3. Combining State Exercise
    4. Type State Implementation
  5. 05

    Managing FormData & Complex State

    1. Managing FormData with useActionState
    2. Converting useState to FormData
    3. useReducer for Complex State Logic
    4. State Flow with use(), Stores & Effects
    5. Context and State Machine Exercise
    6. Step-Based Approach
  6. 06

    External State Management Libraries

    1. Store vs Atomic Libraries
    2. XState Store
    3. External State Management Exercise
  7. 07

    Data Normalization

    1. Flattening Nested Data Structures
    2. Data Normalization Exercise
    3. Undo & Redo Events
  8. 08

    Event-Driven vs Reactive State Management

    1. Avoiding Cascading Effects
    2. Refactor Cascading Effects Exercise
Show 2 more sections
  1. 09

    Advanced State Management Techniques

    1. State Management with URL Parameters
    2. Server State Management with TanStack Query
    3. TanStack Query Exercise
    4. Syncing with External Stores
    5. useSyncExternalStore Hook Exercise
    6. Testing Reducers vs Testing Components
  2. 10

    Wrapping Up

    1. Wrapping Up

Similar Next.js courses

  1. Next.js - The ultimate way to build React apps

    Educative · Eric Wallen · 27 lessons · Oct 2026

    Intermediate5 hSubscription
    Educative27Oct 2026
  2. Introduction to Next.js, v3

    Master.dev · Scott Moss · 27 lessons · Aug 2023

    4 h 27 minSubscription
    Master.dev27Aug 2023
  3. Intro to Next.js

    Codecademy · 2 lessons · Mar 2024

    Intermediate4 h
    Codecademy2Mar 2024
  4. Production-Grade Next.js

    Master.dev · Scott Moss · 24 lessons · Mar 2021

    3 h 58 minSubscription
    Master.dev24Mar 2021
  5. Build a Fullstack App with Next.js, v2

    Master.dev · Scott Moss · 36 lessons · Feb 2023

    5 h 47 minSubscription
    Master.dev36Feb 2023
  6. Mastering Next.js: Build Full-Stack Applications

    Coursera · Anton Voroniuk, Dmytro Vasyliev · Jun 2026

    Beginner3 h
    CourseraJun 2026
  7. Intermediate2 h
    CourseraJun 2024
  8. Introduction to Next.js

    Coursera · Karlis Zars, Starweaver · Dec 2024

    Beginner2 h
    CourseraDec 2024

A hyphen means the provider's catalogue does not state the value.

Same topic, nearest in length, up to three from any one provider.

Data read from the Master.dev catalogue on 28 Nov 2026. How the data is collected.

    Compare