We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7134733 commit 5438bc0Copy full SHA for 5438bc0
index.js
@@ -37,10 +37,8 @@ function createRouter(component) {
37
var match, page, notFound;
38
var len, i;
39
40
- this.children = this.children || this.props.children;
41
-
42
- for (i = 0, len = this.children.length; i < len; i++) {
43
- var current = this.children[i];
+ for (i = 0, len = this.props.children.length; i < len; i++) {
+ var current = this.props.children[i];
44
45
if (process.env.NODE_ENV !== "production") {
46
invariant(
0 commit comments