diff --git a/modules/components/Route.js b/modules/components/Route.js index a1e620fbd8..23c071b087 100644 --- a/modules/components/Route.js +++ b/modules/components/Route.js @@ -214,10 +214,8 @@ var Route = React.createClass({ }, render: function () { - // TODO: In React 0.11 we will be able to `return null` here. - // https://github.com/facebook/react/issues/1058 if (!this.state.path) - return React.DOM.div(); + return null; return this.props.handler(computeHandlerProps(this.state.matches || [], this.state.activeQuery)); } diff --git a/package.json b/package.json index 43de35f5ca..7f383b1bcf 100644 --- a/package.json +++ b/package.json @@ -37,14 +37,14 @@ "karma-mocha": "^0.1.3", "karma-webpack": "^1.2.1", "mocha": "^1.20.1", - "react": ">=0.10.0", + "react": ">=0.11.0", "rf-release": "^0.1.2", "uglify-js": "^2.4.15", "webpack": "^1.2.0-beta5", "webpack-dev-server": "^1.4.2" }, "peerDependencies": { - "react": ">=0.10.0" + "react": ">=0.11.0" }, "dependencies": { "es6-promise": "^1.0.0",