Redux is a JS library for state management, not the React plugin library

Function: Centrally manages the state shared by multiple components in the React application

1. A Web application is a state machine. Views and states correspond one to one.

2. All states are stored in one object.

It works with react Angular Vue projects, but works with React

When should REdux be used?

1. State of a component that needs to be readily available to other components (shared)

2. One component needs to change the state of another component (communication)

General principle: don’t use it if you can use it