ticking clock react js

Solutions on MaxInterview for ticking clock react js by the best coders in the world

showing results for - "ticking clock react js"
Elisa
24 May 2018
1function tick() {
2  const element = (
3    <div>
4      <h1>Hello, world!</h1>
5      <h2>It is {new Date().toLocaleTimeString()}.</h2>
6    </div>
7  );
8  ReactDOM.render(element, document.getElementById('root'));
9}
10
11setInterval(tick, 1000);
similar questions
queries leading to this page
ticking clock react js