Skip to content

Commit

Permalink
Merge pull request react-guide#43 from limerickgds/patch-1
Browse files Browse the repository at this point in the history
change getIndexRoute callback options
  • Loading branch information
camsong authored Nov 16, 2016
2 parents 22d99d3 + fcd1c6d commit 9282aed
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/guides/advanced/DynamicRouting.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ const CourseRoute = {

getIndexRoute(location, callback) {
require.ensure([], function (require) {
callback(null, require('./components/Index'))
callback(null, {
component: require('./components/Index')
})
})
},

Expand Down

0 comments on commit 9282aed

Please sign in to comment.