Book Image

Performing Complex State Management with Redux [Video]

By : James Cross
Book Image

Performing Complex State Management with Redux [Video]

By: James Cross

Overview of this book

Redux is a predictable state container for JavaScript apps which helps you write applications that behave consistently, run in different environments (client, server, and native), and are easy to test. It also provides you with a great developer experience, such as live code editing combined with a time-traveling debugger. Redux can be used together with any view library, not just React! Managing state in an application is critical to developers and is often done unsystematically. Redux provides a solution which will help your applications behave consistently. It is an evolution, helping you avoid the complexity found in Flux on how applications are built with the Elm language. This course starts off with a practical introduction to Redux and how it fits into the JavaScript ecosystem. Moving ahead you will understand how to use Redux with your application and work with ES6/7, Reducers, firing actions, Thunks and Selectors. You will learn the rules of working with Redux and advanced concepts to configure your application. We will spend the last half of the course applying the Redux concepts we have learned to a real-world application - a messaging board similar to Reddit that is written in React. By taking this completed example application you witness how Redux can dramatically simplify the development of your application.By the end of this tutorial, you will be able to apply all the concepts used here to a real project and you will know exactly why you should use Redux for building larger applications.
Table of Contents (4 chapters)
Chapter 2
Using Redux in Your Applications
Content Locked
Section 4
Applying Redux Reducers to the Application
We will look at how to write a reducer and how they work. - Use spreading inside our reducer - Look at the parameters of our reducer function - Transform reducer state on receiving an action