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.
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.
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).
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.
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.
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.
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 and email.