Redux is a predictable state container

后端 未结 4 2137
被撕碎了的回忆
被撕碎了的回忆 2021-02-09 18:08

The description of Redux project is:

Redux is a predictable state container

Can explain to me what \"predictable\" word meaning in t

4条回答
  •  有刺的猬
    2021-02-09 18:40

    You need to understand how changes are made in Reux and what is action and reducer in it.

    • An action is an object which has a type property and it describes the changes in the state of the application.
    • A reducer actually carries out the state transition depending on the action.

    This way reducer carries out a definite state transition based on a definite action out of multiple possible actions. So every time a specific action causes a specific change in a state and makes Redux predictable.

提交回复
热议问题