Skip to content

Commit 14676df

Browse files
committed
Don't render directly to document.body
Fix warning about rendering components directly into document.body which comes with React 0.14 (ReactDom respectively). Instead, render into DIV created on the fly.
1 parent 47aefb1 commit 14676df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/real-world/createDevToolsWindow.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,6 @@ export default function createDevToolsWindow(store) {
2222
<DebugPanel top right bottom left>
2323
<DevTools store={store} monitor={LogMonitor} />
2424
</DebugPanel>,
25-
win.document.body
25+
win.document.body.appendChild(document.createElement('div'))
2626
), 10);
2727
}

0 commit comments

Comments
 (0)