Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
seting up redux devtools
import {applyMiddleware, createStore} from 'redux';
import {State} from './state';
import {composeWithDevTools} from 'redux-devtools-extension';
import {createCheckedReducer} from 'redux-tcomb';
import reducers from './reducers';
import thunk from 'redux-thunk';
const createStore = (reducer) => {
const checkedReducers = createCheckedReducer(reducer, State);
const middlewareStoreCreator = composeWithDevTools(
return middlewareStoreCreator(checkedReducers);
export const getStore = () => create(reducers);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment