Files
redux/docs/api
Gert Hengeveld 60736c8b39 Don't recommend the use of import * as reducers.
Replaced the suggestion to use `import * as reducers` with the recommendation to use `reducers/index.js` and call `combineReducers` there. Updated the code examples accordingly.
2015-08-20 10:42:53 +02:00
..
2015-08-14 11:24:25 -07:00
2015-07-31 12:49:49 +03:00
2015-08-14 11:27:15 -07:00
2015-07-29 18:20:45 +03:00
2015-08-15 12:09:50 +02:00
2015-08-14 11:11:30 -07:00

API Reference

The Redux API surface is tiny. Redux defines a set of contracts for you to implement (such as reducers) and provides a few helper functions to tie these contracts together.

This section documents the complete Redux API. Keep in mind that Redux is only concerned with managing the state. In a real app, youll also want to use UI bindings like react-redux.

Top-Level Exports

Store API

Importing

Every function described above is a top-level export. You can import any of them like this:

ES6

import { createStore } from 'redux';

ES5 (CommonJS)

var createStore = require('redux').createStore;

ES5 (UMD build)

var createStore = Redux.createStore;