royGil
7/20/2018 - 11:00 AM

index.ts

// src/store/index.ts

import { createStore, applyMiddleware } from 'redux'
import thunk from 'redux-thunk'
import rootReducer from './reducers'

const configureStore = (preloadedState: any) =>
  createStore(rootReducer, preloadedState, applyMiddleware(thunk))

export { configureStore }