Skip to content

Commit 3f440e7

Browse files
swbullisaomader
authored andcommitted
Render to a div inside body instead of body directly
Fixes #7.
1 parent ceec372 commit 3f440e7

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,6 @@
1010
</head>
1111

1212
<body>
13+
<div id="app"></div>
1314
</body>
1415
</html>

scripts/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ import ReactDOM from 'react-dom';
33
import Main from '../views/main.jsx';
44

55
window.onload = function(){
6-
ReactDOM.render(<Main />, document.body);
6+
ReactDOM.render(<Main />, document.getElementById('app'));
77
}

0 commit comments

Comments
 (0)