> For the complete documentation index, see [llms.txt](https://gyx8899.gitbook.io/blog/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://gyx8899.gitbook.io/blog/react/redux.md).

# Redux

## 特性

* Single source of truth
* 可预测性：state + action = newState
* 纯函数更新 store

## Store

* getState()
* dispatch(action)
* subscribe(listener)
