1What is the Props
2Props is short for properties and they are used to pass data between React components. React’s data flow between components is uni-directional
3wt is State
4which allows components to create and manage their own data
5
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
10setInterval(tick, 1000);