simple-static-react-router
Advanced tools
Comparing version 0.0.7 to 0.0.8
@@ -558,4 +558,5 @@ (function webpackUniversalModuleDefinition(root, factory) { | ||
clonedChildren = this.props.children.map(function (component, index) { | ||
var unqiueName = component.type.name || component.type; | ||
return _react2.default.cloneElement(component, { | ||
key: component.type.name + index, | ||
key: unqiueName + index, | ||
router: _this2.context.router | ||
@@ -729,3 +730,3 @@ }); | ||
Router.childContextTypes = { | ||
router: _propTypes2.default.object | ||
router: _propTypes2.default.object.isRequired | ||
}; | ||
@@ -732,0 +733,0 @@ |
{ | ||
"name": "simple-static-react-router", | ||
"version": "0.0.7", | ||
"version": "0.0.8", | ||
"description": "Simple static routing components for React", | ||
@@ -5,0 +5,0 @@ "main": "./dist/simple-static-react-router.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
63054
1634