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

后端 未结 3 1352
野的像风
野的像风 2021-01-01 08:40

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 di

3条回答
  •  無奈伤痛
    2021-01-01 09:34

    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

提交回复
热议问题