react-hn
react-hn copied to clipboard
update readme to use the react-dom.render() instead of deprecated react.render()
After 0.14 React moved to ReactDOM.render()
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();
You should merge this. I just spent 20 min trying to figure out why your tutorial is broken.