Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

1. 프로젝트 세팅

프로젝트명을 “plus1“으로 새 vite 프로젝트를 생성한다

PS E:\test\html5> npm create vite

> npx
> create-vite

|
o  Project name:
|  plus1
|
o  Select a framework:
|  React
|
o  Select a variant:
|  JavaScript
|
o  Scaffolding project in E:\test\html5\plus1...
|
—  Done. Now run:

  cd plus1
  npm install
  npm run dev

PS E:\test\html5>

App.jsx 파일에서 불필요한 부분을 모두 삭제하고 다음만 남긴다.

// App.jsx 파일

function App() {

  return (
    <>
    </>
  )
}

export default App