---
title: "From React.js To Flux To Redux"
description: "Compare four implementations of the same Shopping List app built with React ES5, React ES2015, Flux, and Redux to see how state management evolves."
url: "https://react.tips/from-react-to-flux-to-redux/"
category: "react"
published: "2016-10-16"
updated: "2026-12-01"
react_version: "15"
proficiency: "Intermediate"
keywords: ["React", "Flux", "Redux", "state management", "ES2015"]
author: "Artemij Fedosejev"
---

# From React.js To Flux To Redux

**Summary:** Compare four working implementations of the same Shopping List application—React with ES5, React with ES2015, React with Flux, and React with Redux—to see how state management moves out of UI components into centralized stores as an app scales.

React.js evolution brought us Flux and Redux.

If you want to really understand what's the difference between building web apps with React only, or with React and Flux, or with React and Redux, then check the four examples that I've prepared for you.

They all implement exactly the same Shopping List app, but most importantly - they highlight the difference in _how_ you approach building web apps using different tools.

![Shopping List React application used to compare plain React, Flux, and Redux implementations](./images/app.png)

## Built with React.js and JavaScript ES5

In this example, I am using only React.js without Flux or Redux to build the entire app. And I am using the good old JavaScript that all know and love (or hate?): version ECMAScript 5.

+ [Source code](https://github.com/fedosejev/shopping-list-react)
+ [Demo](https://fedosejev.github.io/shopping-list-react/)

This example is the best place for you to start if you're not familiar with Flux or Redux at all. It helps you to understand _why_ we need Flux or Redux. You will feel strange when storing application state (the shopping list itself) in React components, knowing that React _should_ only be responsible for knowing how to render the user interface.

## Built with React.js and JavaScript ES2015

The industry uses a newer version of JavaScript today: ECMAScript 2015. It brings new syntax and React takes advantage of that syntax.

+ [Source code](https://github.com/fedosejev/shopping-list-react-es2015)
+ [Demo](https://fedosejev.github.io/shopping-list-react-es2015)

If you want to see how to transition from tradition ES5 syntax to newer ES2015 syntax in the context of React app, then this example is perfect for you. Feel free to compare it with the the previous one (ES5 version).

## Built with React.js and Flux and JavaScript ES5

If React feels familiar to you and you can build simple apps with it then you most likely faced a problem of accessing application state from different React components. It's not a straight forward task! And it feels awkward, because we know that React is a UI library, and if we follow the separation of concerns principle, then it's clear to us that we shouldn't store application state in React components!

Where do we store it then? That's why you might need to introduce Flux architecture to your React application.

+ [Source code](https://github.com/fedosejev/shopping-list-react-flux)
+ [Demo](https://fedosejev.github.io/shopping-list-react-flux/)

This example is a perfect introduction to the Flux architecture, because you're building exactly the same app, but now you're clearly separating your UI logic from your application state logic.

## Built with React.js and Redux and JavaScript ES2015

Flux is a great start for understanding how data flows in your React application. Redux takes it to the next level by building on top of ideas from Flux and introducing new important concepts that allow you to build really scalable and robust React apps.

+ [Source code](https://github.com/fedosejev/shopping-list-react-redux)
+ [Demo](https://fedosejev.github.io/shopping-list-react-redux/)

I hope you've enjoyed these examples and I would love to hear your feedback in the comments. You can get in touch with me via [Twitter](https://twitter.com/artemy) and [email](mailto:artemij@fedosejev.com).

[Artemij Fedosejev](https://artemij.com)

P.S. I've also written [React.js Essentials book](https://www.amazon.com/React-js-Essentials-Artemij-Fedosejev/dp/1783551623/)!
