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

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

  return store
}

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

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

  return store
}

Add logger to store