Commit cbd2029f authored by Phuengton Chummuel's avatar Phuengton Chummuel

add middleware thunk

parent c4c99419
import { createStore } from 'redux'
import { createStore, applyMiddleware } from 'redux'
import reducers from './reducers'
import thunk from 'redux-thunk'
export default function configureStore() {
const store = createStore(reducers)
const store = createStore(reducers, applyMiddleware(thunk))
if (module.hot) {
module.hot.accept(() => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment