ReactJS: Hello World in React

This entry is part 8 of 35 in the series React JS

https://codepen.io/gaearon/pen/gwoJZk?editors=0010

function tick() {
  const element = (
    <div>
      <h1>Hello, world!</h1>
      <h2>It is {new Date().toLocaleTimeString()}.</h2>
    </div>
  );
  ReactDOM.render(
    element,
    document.getElementById('root')
  );
}

setInterval(tick, 1000);
Series Navigation<< ReactJS: Toggle On Off button
ReactJS: Formatting a border >>