diff --git a/examples/browserify-gulp-example/src/app/app.jsx b/examples/browserify-gulp-example/src/app/app.jsx index f808c2596968a8..384bce3aacf60b 100644 --- a/examples/browserify-gulp-example/src/app/app.jsx +++ b/examples/browserify-gulp-example/src/app/app.jsx @@ -1,5 +1,6 @@ (function () { let React = require('react'); + let ReactDOM = require('react-dom'); let injectTapEventPlugin = require('react-tap-event-plugin'); let Main = require('./components/main.jsx'); // Our custom react component @@ -12,8 +13,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); + ReactDOM.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 @@ +
+