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

const store = createStore(rootReducer)

export default store

import { createStore, compose } from 'redux'
import rootReducer from './reducers'

// activating redux devtools - make sure its in browser and has devtools for redux
// (f) => f means do nothing / return what you are given
const store = createStore(rootReducer, compose(
  typeof window === 'object' && typeof window.devToolsExtension !== 'undefined' ? window.devToolsExtension() : (f) => f
))

export default store

Set up redux devtools