# API 文檔
Redux 的 API 非常少。Redux 定義了一系列的約定(contract)來讓你來實現(例如 [reducers](../Glossary.md#reducer)),同時提供少量輔助函數來把這些約定整合到一起。
這一章會介紹所有的 Redux API。記住,Redux 只關心如何管理 state。在實際的項目中,你還需要使用 UI 綁定庫如 [react-redux](https://github.com/gaearon/react-redux)。
### 頂級暴露的方法
- [createStore(reducer, [preloadedState], [enhancer])](createStore.md)
- [combineReducers(reducers)](combineReducers.md)
- [applyMiddleware(...middlewares)](applyMiddleware.md)
- [bindActionCreators(actionCreators, dispatch)](bindActionCreators.md)
- [compose(...functions)](compose.md)
### Store API
- [Store](Store.md)
- [getState()](Store.md#getState)
- [dispatch(action)](Store.md#dispatch)
- [subscribe(listener)](Store.md#subscribe)
- [getReducer()](Store.md#getReducer)
- [replaceReducer(nextReducer)](Store.md#replaceReducer)
### 引入
上面介紹的所有函數都是頂級暴露的方法。都可以這樣引入:
#### ES6
```js
import { createStore } from 'redux'
```
#### ES5 (CommonJS)
```js
var createStore = require('redux').createStore
```
#### ES5 (UMD build)
```js
var createStore = Redux.createStore
```
- 自述
- 介紹
- 動機
- 核心概念
- 三大原則
- 先前技術
- 學習資源
- 生態系統
- 示例
- 基礎
- Action
- Reducer
- Store
- 數據流
- 搭配 React
- 示例:Todo List
- 高級
- 異步 Action
- 異步數據流
- Middleware
- 搭配 React Router
- 示例:Reddit API
- 下一步
- 技巧
- 配置 Store
- 遷移到 Redux
- 使用對象展開運算符
- 減少樣板代碼
- 服務端渲染
- 編寫測試
- 計算衍生數據
- 實現撤銷重做
- 子應用隔離
- 組織 Reducer
- Reducer 基礎概念
- Reducer 基礎結構
- Reducer 邏輯拆分
- Reducer 重構示例
- combineReducers 用法
- combineReducers 進階
- State 范式化
- 管理范式化數據
- Reducer 邏輯復用
- 不可變更新模式
- 初始化 State
- 結合 Immutable.JS 使用 Redux
- 常見問題
- 綜合
- Reducer
- 組織 State
- 創建 Store
- Action
- 不可變數據
- 代碼結構
- 性能
- 設計哲學
- React Redux
- 其它
- 排錯
- 詞匯表
- API 文檔
- createStore
- Store
- combineReducers
- applyMiddleware
- bindActionCreators
- compose
- react-redux 文檔
- API
- 排錯