react test

In this example below you will see how to do a react test with some HTML / CSS and Javascript

This awesome code was written by 1zm0, you can see more from this user in the personal repository.
You can find the original code on
Copyright 1zm0 ©
  • HTML
  • CSS
  • JavaScript
    <div id="root"></div>

/*Downloaded from */
  margin: 0;
  width: 100vw;
  height: 100vh;
  background-color: peru;
  margin: 0;

/*Downloaded from */

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

setInterval(tick, 1000);