Skip to content

Commit

Permalink
Fix rendering to body warning in example projects.
Browse files Browse the repository at this point in the history
  • Loading branch information
dmdemeul committed Oct 23, 2015
1 parent 94737a7 commit f264c49
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
4 changes: 2 additions & 2 deletions examples/browserify-gulp-example/src/app/app.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
//https://github.com/zilverline/react-tap-event-plugin
injectTapEventPlugin();

// Render the main app react component into the document body.
// Render the main app react component into the app div.
// For more details see: https://facebook.github.io/react/docs/top-level-api.html#react.render
React.render(<Main />, document.body);
React.render(<Main />, document.getElementById('app'));

})();
2 changes: 2 additions & 0 deletions examples/browserify-gulp-example/src/www/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
</head>

<body>
<div id="app"></div>

<!-- This script adds the Roboto font to our project. For more detail go to this site: http://www.google.com/fonts#UsePlace:use/Collection:Roboto:400,300,500 -->
<script>
var WebFontConfig = {
Expand Down
4 changes: 2 additions & 2 deletions examples/webpack-example/src/app/app.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
//https://github.com/zilverline/react-tap-event-plugin
injectTapEventPlugin();

// Render the main app react component into the document body.
// Render the main app react component into the app div.
// For more details see: https://facebook.github.io/react/docs/top-level-api.html#react.render
React.render(<Main />, document.body);
React.render(<Main />, document.getElementById('app'));

})();
2 changes: 2 additions & 0 deletions examples/webpack-example/src/www/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
</head>

<body>
<div id="app"></div>

<!-- This script adds the Roboto font to our project. For more detail go to this site: http://www.google.com/fonts#UsePlace:use/Collection:Roboto:400,300,500 -->
<script>
var WebFontConfig = {
Expand Down

0 comments on commit f264c49

Please sign in to comment.