An introduction to Redux and Sagas #2

In this part, we’ll set up a react app with redux and make it work with some simple actions. As I’m a big advocate of typescript and its superior readability; we’ll go ahead and use that as well. Creating the app So let’s get started by creating a react app using the typescript template. If you dont have the create-react-app cli already, start with installing it: $ npm install -g create-react-app Then create a react app with the typescript template.

An introduction to Redux and Sagas #1

Before we dive into redux and sagas, it might be nice to get some background. What is Redux? To quote the readme available over at https://redux.js.org/: Redux is a predictable state container for JavaScript apps. It helps you write applications that behave consistently, run in different environments (client, server, and native), and are easy to test.