Suresh Ponnukalai Suresh Ponnukalai - 17 days ago 5
React JSX Question

Is there any difference between React.render() and ReactDOM.render()?

I have noticed that some of the places in articles they have used "React.render()" and some of the places "ReactDOM.render()". Is there any specific differences are there between these two?

Answer

This is a very recent change introduced with 0.14. They split up React into a core library and the DOM adapter. Rendering is now done via ReactDOM.render.

https://facebook.github.io/react/blog/2015/10/07/react-v0.14.html

Comments