react hello code example Example: simple hello world in react js ReactDOM.render( <h1>Hello, world!</h1>, document.getElementById('root') );