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 5e5ec5c commit 45d17baCopy full SHA for 45d17ba
modules/components/Routes.js
@@ -229,6 +229,11 @@ var Routes = React.createClass({
229
},
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'
235
+ );
236
+
237
if (this._handleStateChange) {
238
this._handleStateChange();
239
delete this._handleStateChange;
0 commit comments