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

const configureStore = () => {
	const store = createStore(
		oaaChat, applyMiddleware(thunk, logger()))

	return store
}

export default configureStore
import { createStore, applyMiddleware } from 'redux'
import thunk from 'redux-thunk'
import oaaChat from './reducers'

const configureStore = () => {
	const store = createStore(
		oaaChat, 
		window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__(),
		applyMiddleware(thunk))

	return store
}

export default configureStore
Remove redux-logger and setup redux devtools
Remove redux-logger and setup redux devtools
