InterviewHubPRO
Section Overview
Q169

Question 169 of 445

Part 8: Advanced React Patterns, Portals & Performance (152 - 261)

38%
React & Modern Frontend (445 Qs)•Part 8: Advanced React Patterns, Portals & Performance (152 - 261)

What are the differences between Flux and Redux?

The biggest conceptual difference is the data flow itself:

sql
Flux:

View
↓
Action
↓
Dispatcher
↓
Multiple Stores
↓
View

versus:

sql
Redux:

View
↓
Action
↓
Middleware
↓
Reducer
↓
Single Store
↓
View

Flux routes every action through a single Dispatcher, which broadcasts it to multiple stores, each holding its own slice of state and its own change logic. Redux replaces the dispatcher with middleware (for side effects) and pure reducer functions (for state updates), all funneling into a single store as the one source of truth.

Below are the major differences between Flux and Redux

FluxRedux
State is mutableState is immutable
The Store contains both state and change logicThe Store and change logic are separate
There are multiple stores existThere is only one store exist
All the stores are disconnected and flatSingle store with hierarchical reducers
It has a singleton dispatcherThere is no concept of dispatcher
React components subscribe to the storeContainer components uses connect function