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 45d17ba commit 23496c1Copy full SHA for 23496c1
modules/components/Routes.js
@@ -230,8 +230,9 @@ var Routes = React.createClass({
230
231
componentDidMount: function () {
232
warning(
233
- this.getDOMNode() == null || this.getDOMNode().parentNode === document.body,
234
- '<Routes> should probably be the outermost component on the page'
+ this._owner == null,
+ '<Routes> should be rendered directly using React.renderComponent, not ' +
235
+ 'inside some other component\'s render method'
236
);
237
238
if (this._handleStateChange) {
0 commit comments