function tick() { const element = (

Hello, world!

It is{' '} {new Date().toLocaleTimeString()}.

); // highlight-range{1-4} ReactDOM.render( element, document.getElementById('root') ); } setInterval(tick, 1000);