Skip to content

Instantly share code, notes, and snippets.

@daverivera
Created May 29, 2019 12:51
Show Gist options
  • Save daverivera/99391d6628edfcbf2a863072bebabfc0 to your computer and use it in GitHub Desktop.
Save daverivera/99391d6628edfcbf2a863072bebabfc0 to your computer and use it in GitHub Desktop.
redux-crosstab_persist_redux-index
import { combineReducers } from 'redux'
import todos from './todos'
import visibilityFilter from './visibilityFilter'
+import { withReduxStateSync } from 'redux-state-sync'
const rootReducer = combineReducers({
todos,
visibilityFilter
})
-export default rootReducer
+export default withReduxStateSync(rootReducer)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment