Skip to content

Instantly share code, notes, and snippets.

@oliverlin
Last active May 7, 2021 09:49
Show Gist options
  • Save oliverlin/6526afdf0d985d72ade16493173510a3 to your computer and use it in GitHub Desktop.
Save oliverlin/6526afdf0d985d72ade16493173510a3 to your computer and use it in GitHub Desktop.
code-splitting redux reducers in next.js 1
// createStore.js
import jobs from 'reducers/jobs'
import books from 'reducers/books'
const reducers = {
jobs,
books
}
const store = createStore(combineReducers(reducers))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment