The Road to Redux

Your journey to master Redux in JavaScript

The most comprehensive book to learn Redux state management in React applications. Everything you need to know about Actions, Reducers, the Store, and advanced patterns to build scalable frontend applications.

250+
Pages
10+
Exercises
15+
Course Modules
300+
Code Snippets

What's Included

Redux in JavaScript with React

Learn Modern Redux

Learn how large scale applications make use of Redux and its concise API for their state management in React.

Packed with Exercises

You will have plenty of time to apply your learnings in exercises after each chapter of the book. Lots of additional content awaits you.

Beginner Friendly

Step by step we will explore the concepts of Redux and how to use it in modern client applications to power our frontend.

Up-To-Date

All the recent Redux best practices will be included in this Redux course to get you up to speed to the recent trends.

Concepts and API

You will go through concepts and best practices in Redux to explore all of its facets in real world applications.

Step by Step

Before diving into Redux with React, you will get the chance to get to know Redux itself a a slim state management library.

Robin Wieruch

Meet your Instructor

Robin Wieruch

Robin is a software engineer who has authored several books and courses about JavaScript and React. He has been a developer for more than a decade and has experience in building web applications and consulting for startups and companies across the world.

During his freelance tenure, Robin collaborated with diverse entities like MakerDAO in blockchain, TRUMPF in high-precision laser technology, and the US government, among other ventures.

  • Bestselling JavaScript Book Author
  • 3,000,000+ Blog Visits per Year
  • 80,000+ Book Readers and Course Students
  • 50,000+ Newsletter Readers
  • 23,000+ Twitter Followers
  • 11,000+ LinkedIn Followers
  • 8,000+ GitHub Followers
  • 6,000+ GitHub Stars
  • 2x Awarded GitHub Star
  • Technical Co-Founder of CloudCamping
  • Dad of two wonderful Boys

Roadmap

What you're going to be learning

1

Local State Management

Redux is used in many React applications to manage its state. Before we dive into Redux, you will learn more about local state management in React itself.

2

Basics in Redux

Redux with its Actions, Reducers and Store is everything you need to get started with state management. You can learn it completely in isolation for using it as a state container.

3

Advanced Redux

Before connecting Redux to React, you will learn more about its advanced concepts for Actions and Reducers and how to use them properly.

4

Redux in React

Finally you will bring Redux together with a working React application. By using a library to connect both worlds, the Redux state can be used in your React components.

5

Redux State as Architecture

There are many best practices and concepts to fully embrace Redux in modern frontend applications. Here you will learn more about these techniques.

6

Bonus: MobX

Last but not least, we will explore MobX as alternative to Redux and all the trade-offs coming with replacing Redux with another state management library.

Become an Expert in Redux

Table of Contents

What you can expect from the book

1

Local State Management

  • Definitions
  • Pure Functions
  • Immutability
  • State
  • Local State in React
  • Stateful and Stateless Components
  • Props vs. State
  • Form State
  • Controlled Components
  • Unidirectional Data Flow
  • Scaling Local State in React
  • Lifting State
  • Functional State
  • Higher-Order Components
  • React's Context for Provider and Consumer
  • Persistence in State
  • Local Storage
  • Caching in State
  • Transition to Sophisticated State
  • The Controversies of Local State Management
  • The Flaw of Local State Management
2

Redux

  • Basics in Redux
  • Action(s)
  • Reducer(s)
  • Store
  • Hands On: Redux Standalone
  • Advanced Actions
  • Minimum Action Payload
  • Action Type
  • Action Creator
  • Optional Payload
  • Payload Structure
  • Hands On: Redux Standalone with advanced Actions
  • Advanced Reducers
  • Initial State
  • Nested Data Structures
  • Combined Reducer
  • Clarification for Initial State
  • Nested Reducers
  • Hands On: Redux Standalone with advanced Reducers
3

Redux in React

  • Connecting the State
  • Hands On: Bootstrap React App with Redux
  • Hands On: Naive Todo with React and Redux
  • Connecting the State but Sophisticated
  • Hands On: Sophisticated Todo with React and Redux
  • Hands On: Connecting State Everywhere
4

Redux State Structure and Retrieval

  • Middleware in Redux
  • Immutable State
  • Normalized State
  • Selectors
  • Plain Selectors
  • Denormalize State in Selectors
  • Reselect
  • Hands On: Todo with Advanced Redux
  • Hands On: Todo but more Features
5

Asynchronous Redux

  • Redux Thunk
  • Hands On: Todo with Notifications
  • Asynchronous Actions Alternatives
  • Redux Saga
  • Hands On: Todo with Redux Saga
6

Redux Patterns Techniques and Best Practices

  • Using JavaScript ES6
  • Naming Conventions
  • The Relationship between Actions and Reducers
  • Folder Organization
  • Technical Folder Organization
  • Feature Folder Organization
  • Ducks
  • Testing
  • Error Handling
7

(React in) Redux FAQ

  • Redux vs. Local State
  • View vs. Entity State
  • Accidental vs. Planned State
8

Redux State as Architecture

  • Hands On: Hacker News with Redux
  • Part 1-17
  • Final Words
9

Redux Ecosystem Outline

  • Redux DevTools
  • Connect Revisited
  • Concise Actions and Reducers
  • React Redux Libraries
  • Routing with Redux
  • Typed Redux
  • Server-side Redux
10

MobX

  • Introduction
  • Observable State
  • Autorun
  • Actions
  • Computed Values
11

MobX in React

  • Local State
  • Scaling Reactions
  • Inject Stores
  • Advanced MobX
  • Other Reactions
  • Be Opinionated
  • Alternative to Redux?

Course Modules beyond the Book

Tutorials, Source Code and Screencasts

Before Redux

Why Redux What is a Reducer

Context API

React Context

React Hooks

React Hooks Introduction React's useState Hook React's useReducer Hook useState/useReducer React's useContext Hook

React State

State Overview Global State Mimic Redux Redux vs useReducer

Testing

Connected Components

Alternatives

State with MobX State with RxJS State with Apollo Client

Screencasts

Snake in React Hacker News with Redux Hacker News with MobX

Testimonials

What industry leaders are saying

"Robin is one of the most consistently high quality React educators. His approach directly addresses practical concerns you *will* face in your daily React work, without talking down to you or wasting your time with fluff. Don't just take my word for it - look at his public work and you'll see."
Shawn Wang
Developer Experience at Netlify
"Robin is an excellent teacher. His articles and tutorials are in-depth and informative, and his code is clear and concise. I've found an answer on his site countless times when researching a problem, and I know that's one less article I have to write."
Tania Rascia
JS Dev, Online Educator
"Everything that I've read from Robin has been top tier quality stuff. There are blog posts that I have wanted to write, but then I found one by Robin and decided I didn't need to. Fantastic content."
Kent C. Dodds
Full-time JavaScript Instructor
"You can tell how much time Robin has put into a teaching piece when you consume his content. I have partnered with Robin and he sets the bar high for other teachers and content creators -- this results to a quality learning ecosystem for his students regardless if a content or course was thought by him or not."
Christian Nwamba
JS Dev, Organizer of Concatenate
"I haven't read this book yet, but the previous educational materials made by Robin were nothing short of amazing. Thanks for creating this content and putting it out there!"
Dan Abramov
React.js Core Team
"If it's anything to do with React and it's written by Robin, you can trust that it'll be world-class. His books are some of the best content you'll find on the web for learning React."
Preethi Kasireddy
Founder & CEO of TruStory

What Participants Are Saying

Reviews from Amazon

"I highly recommend this book for learning how to handle state in React. Robin is an excellent writer and thoroughly covers the subject. He explains the basics and then goes in depth covering best practices, etc. After reading this book I feel completely comfortable working with React + Redux."

— B. Broughton

Frequently Asked Questions

Is there anything else you want to know?

Ready to take the journey?

Pick a learning path that works for you

The Road to Redux

Complete course with book, exercises, and bonus modules

  • 250+ Pages
  • 10+ Exercises
  • 15+ Course Modules
  • 300+ Code Snippets
  • Lifetime Updates
Get the Book