Guest User

Untitled

a guest
May 7th, 2016
1,069
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import { createStore } from 'redux'
  2. import rootReducer from '../reducers'
  3.  
  4. export default function configureStore(initialState) {
  5.   const store = createStore(rootReducer, initialState)
  6.  
  7.   if (module.hot) {
  8.     module.hot.accept('../reducers', () => {
  9.       const nextRootReducer = require('../reducers').default
  10.       store.replaceReducer(nextRootReducer)
  11.     })
  12.   }
  13.  
  14.   return store
  15. }
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×