index.html
<div id="root"></div>
index.js
import React from 'react';
import ReactDOM from 'react-dom/client';
import './index.css';
import App from './App';
import reportWebVitals from './reportWebVitals';
const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(
<React.StrictMode>
<App />
</React.StrictMode>//html으로 랜더링 됌 index.html 의 id root의 자식으로 포함
);
// If you want to start measuring performance in your app, pass a function
// to log results (for example: reportWebVitals(console.log))
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
reportWebVitals(); // 웹 퍼포먼스를 측정
<div id="root">
<div class="App"> // index.js에서 App.js를 임포트 해서 사용
</div>
</div>
package.json: 종속성 정의 Maven의 pom.xml과 비슷한 역할.
node_modules: 종속성이 다운로드 되는 폴더
React Initialization