UNPKG

nodebb-plugin-l24u-lk

Version:

This is lk for l24u.ru

20 lines (15 loc) 470 B
import {applyMiddleware, combineReducers, createStore} from 'redux'; import ReduxThunk from 'redux-thunk'; import * as Reducers from './reducers'; export default class ReduxStore { constructor() { this.store = createStore(combineReducers(Reducers), applyMiddleware(ReduxThunk)); } dispatch(action) { return this.store.dispatch(action); } getStore() { return this.store; } static currentStore; }