Skip to content

Commit

Permalink
Fix React.render deprecated warning
Browse files Browse the repository at this point in the history
  • Loading branch information
dmdemeul committed Oct 23, 2015
1 parent f264c49 commit 7f54529
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion examples/browserify-gulp-example/src/app/app.jsx
Original file line number Diff line number Diff line change
@@ -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

Expand All @@ -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(<Main />, document.getElementById('app'));
ReactDOM.render(<Main />, document.getElementById('app'));

})();
3 changes: 2 additions & 1 deletion examples/webpack-example/src/app/app.jsx
Original file line number Diff line number Diff line change
@@ -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

Expand All @@ -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(<Main />, document.getElementById('app'));
ReactDOM.render(<Main />, document.getElementById('app'));

})();

0 comments on commit 7f54529

Please sign in to comment.