Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

timini
Copy link

@timini timini commented Apr 18, 2016

After 0.14 React moved to ReactDOM.render()

@LizPeng
Copy link

LizPeng commented Jun 13, 2017

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();

@escherize
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants