Which of these is the recommended way to create a react app?
Assume there is an HTML element with the id body.
body
React.renderDOM( <h1>Hello, world!</h1>, document.getElementById('root') );
ReactDOM.render( <h1>Hello, world!</h1>, document.getElementById('root') );
React.renderDOM( <h1>Hello, world!</h1>, 'root' );
ReactDOM.render( <h1>Hello, world!</h1>, 'root' );