Redux is a predictable state container

后端 未结 4 2140
被撕碎了的回忆
被撕碎了的回忆 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:19

    Redux is a "state container" because it holds all the state of your application. It doesn't let you change that state directly, but instead forces you to describe changes as plain objects called "actions". Actions can be recorded and replayed later, so this makes state management predictable. With the same actions in the same order, you're going to end up in the same state.

    By Dan Abramov

提交回复
热议问题