Skip to content

Instantly share code, notes, and snippets.

@mobinni
Created December 16, 2015 20:58
Show Gist options
  • Save mobinni/9fc1f7b8110998a9bc9a to your computer and use it in GitHub Desktop.
Save mobinni/9fc1f7b8110998a9bc9a to your computer and use it in GitHub Desktop.
A Modern Isomorphic Stack with Redux - Part 1
import Feed from './components/Feed';
import Item from './components/Item';
export default {
index: {
path: 'feed',
getComponent(location, cb) {
cb(null, Feed);
}
},
item: {
path: 'feed/:item',
getComponent(location, cb) {
cb(null, Item);
}
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment