mirror of
https://github.com/wassname/talk.git
synced 2026-07-22 13:00:29 +08:00
14 lines
334 B
JavaScript
14 lines
334 B
JavaScript
import {createStore, applyMiddleware, compose} from 'redux';
|
|
import thunk from 'redux-thunk';
|
|
import mainReducer from './reducers';
|
|
import {client} from './client';
|
|
|
|
export default createStore(
|
|
client.reducer(),
|
|
mainReducer,
|
|
compose(
|
|
window.devToolsExtension && window.devToolsExtension(),
|
|
applyMiddleware(thunk)
|
|
)
|
|
);
|