# API 文檔
Redux 的 API 非常少。Redux 定義了一系列的約定(contract)來讓你來實現(例如 [reducers](#)),同時提供少量輔助函數來把這些約定整合到一起。
這一章會介紹所有的 Redux API。記住,Redux 只關心如何管理 state。在實際的項目中,你還需要使用 UI 綁定庫如 [react-redux](https://github.com/gaearon/react-redux)。
### 頂級暴露的方法
- [createStore(reducer, [initialState])](#)
- [combineReducers(reducers)](#)
- [applyMiddleware(...middlewares)](#)
- [bindActionCreators(actionCreators, dispatch)](#)
- [compose(...functions)](#)
### Store API
- [Store](#)
- [getState()](#)
- [dispatch(action)](#)
- [subscribe(listener)](#)
- [getReducer()](#)
- [replaceReducer(nextReducer)](#)
### 引入
上面介紹的所有函數都是頂級暴露的方法。都可以這樣引入:
#### ES6
~~~
import { createStore } from 'redux';
~~~
#### ES5 (CommonJS)
~~~
var createStore = require('redux').createStore;
~~~
#### ES5 (UMD build)
~~~
var createStore = Redux.createStore;
~~~