<div id="root"></div>
이 안에 들어가는 모든 엘리먼트는 React DOM에서 관리하기 때문에 이것을 루트 DOM 노드라고 한다.
const element = <h1>Hello, world</h1>;
ReactDOM.render(element, document.getElementById('root'));
So, we can use ReactDOM.render()
to transfer reactDOM TO root DOM node.
The only thing we can update the UI is making new element and transfering by ReactDOM.render().
Think clock app that is changed every second. You should think how the UI show up at a specific point in time not how the UI will be changed by the time.