import { createStore } from 'redux'
import reducer from '../reducers'

export default () => {
  const store = createStore(reducer)

  return store
}

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

export default () => {
  const store = createStore(
    reducer,
    applyMiddleware(thunk)
  )

  return store
}

Add thunk middleware to store
Add thunk middleware to store 

