Skip to content

Instantly share code, notes, and snippets.

@radzionc
Created April 27, 2018 16:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save radzionc/0d5ceee03a87ad1c2ca65829e1c9e8b4 to your computer and use it in GitHub Desktop.
Save radzionc/0d5ceee03a87ad1c2ca65829e1c9e8b4 to your computer and use it in GitHub Desktop.
import { createStore, combineReducers, applyMiddleware } from 'redux'
import { composeWithDevTools } from 'redux-devtools-extension'
import { reducer as formReducer } from 'redux-form'
import reducers from './reducers'
import middleware from './middleware'
export default createStore(
combineReducers({
...reducers,
form: formReducer
}),
composeWithDevTools(applyMiddleware(...middleware))
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment