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 6fc35d1 commit a3d6e2aCopy full SHA for a3d6e2a
modules/components/Route.js
@@ -213,6 +213,11 @@ var Route = React.createClass({
213
},
214
215
render: function () {
216
+ // TODO: In React 0.11 we will be able to `return null` here.
217
+ // https://github.com/facebook/react/issues/1058
218
+ if (!this.state.path)
219
+ return React.DOM.div();
220
+
221
return this.props.handler(computeHandlerProps(this.state.matches || [], this.state.activeQuery));
222
}
223
0 commit comments