From 7f5452982b3badef513897e1f39e56a1b95b6099 Mon Sep 17 00:00:00 2001 From: David DeMeulenaere Date: Fri, 23 Oct 2015 15:10:46 -0400 Subject: [PATCH] Fix React.render deprecated warning --- examples/browserify-gulp-example/src/app/app.jsx | 3 ++- examples/webpack-example/src/app/app.jsx | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/examples/browserify-gulp-example/src/app/app.jsx b/examples/browserify-gulp-example/src/app/app.jsx index 2405446315324e..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 @@ -14,6 +15,6 @@ // 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.getElementById('app')); + ReactDOM.render(
, document.getElementById('app')); })(); diff --git a/examples/webpack-example/src/app/app.jsx b/examples/webpack-example/src/app/app.jsx index 2405446315324e..384bce3aacf60b 100644 --- a/examples/webpack-example/src/app/app.jsx +++ b/examples/webpack-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 @@ -14,6 +15,6 @@ // 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.getElementById('app')); + ReactDOM.render(
, document.getElementById('app')); })();