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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.