Introduction

Redux is a predictable state container for JavaScript apps. That means Redux can be used with vanilla JavaScript or frameworks/libraries such as Angular and jQuery. Redux is mainly a library responsible for issuing state updates and responses to actions. Redux is widely used with React. Instead of directly modifying the state of the application, the modification is handled by emitting events called actions. These events are functions (also known as action creators) that always return two key properties, a type (which indicates the type of action being performed, and the types should typically be defined as string constants) and a payload (the data you want to pass within the action). These functions emit events that are subscribed ...

Get React Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.