react-hn icon indicating copy to clipboard operation
react-hn copied to clipboard

update readme to use the react-dom.render() instead of deprecated react.render()

Open timini opened this issue 8 years ago • 2 comments

After 0.14 React moved to ReactDOM.render()

timini avatar Apr 18 '16 08:04 timini

1、npm install react-dom --save

2、add var ReactDOM = require('react-dom'); in js/NewsItemTest.js

3、use ReactDOM.render(//code...) instead of react.render();

LizPeng avatar Jun 13 '17 07:06 LizPeng

You should merge this. I just spent 20 min trying to figure out why your tutorial is broken.

escherize avatar Jul 27 '17 16:07 escherize