From f264c49518d05f9c163c9cafd113982d21d0cc88 Mon Sep 17 00:00:00 2001 From: David DeMeulenaere Date: Fri, 23 Oct 2015 14:57:46 -0400 Subject: [PATCH 1/2] Fix rendering to body warning in example projects. --- examples/browserify-gulp-example/src/app/app.jsx | 4 ++-- examples/browserify-gulp-example/src/www/index.html | 2 ++ examples/webpack-example/src/app/app.jsx | 4 ++-- examples/webpack-example/src/www/index.html | 2 ++ 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/examples/browserify-gulp-example/src/app/app.jsx b/examples/browserify-gulp-example/src/app/app.jsx index f808c2596968a8..2405446315324e 100644 --- a/examples/browserify-gulp-example/src/app/app.jsx +++ b/examples/browserify-gulp-example/src/app/app.jsx @@ -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(
, document.body); + React.render(
, document.getElementById('app')); })(); diff --git a/examples/browserify-gulp-example/src/www/index.html b/examples/browserify-gulp-example/src/www/index.html index 9e0861db250641..a3ed21648f67dc 100644 --- a/examples/browserify-gulp-example/src/www/index.html +++ b/examples/browserify-gulp-example/src/www/index.html @@ -11,6 +11,8 @@ +
+