index.html
DOM 자리<div id="root"></div>브라우저가 먼저 읽는 HTML entry.
Vite는 index.html을 entry로 제공한다. main.jsx가 DOM node에 React root를 만들고 App.jsx의 JSX를 그 안에 표시한다.
<div id="root"></div>브라우저가 먼저 읽는 HTML entry.
createRoot(#root)root.render(<App />)
function App() → JSX문구·컴포넌트를 바꾸는 첫 수정 지점.
#root → App UI저장하면 Vite HMR이 변경을 반영.
관리 경계: root.render 뒤 React는 #root 내부 DOM을 관리한다. root가 없거나 selector가 다르면 연결되지 않는다.