다음 4가지를 설치합니다.
1. VS Code (code.visualstudio.com/)
2. Git for Windows (gitforwindows.org/)
3. node.js (nodejs.org/ko/)
4. yarn (classic.yarnpkg.com/en/docs/install/#windows-stable)
git bash를 열어Git Bash를 실행하여 React 프로젝트를 생성할 위치로 이동한 후 다음 명령어를 입력합니다.
npm install -g create-react-app
이어서 다음 명령어를 입력합니다.
// React 프로젝트 생성
create-react-app hello-react
// 생성한 프로젝트로 이동
cd hello-react
// React 실행
yarn start
반응형
'React' 카테고리의 다른 글
[React][Next.js] <Link></Link>를 통한 라우터 기능 - <Link> 내부에 <a> 태그를 넣는 이유 (0) | 2022.06.30 |
---|---|
[react-router-dom][v6] URL 파라미터를 통해 하위 경로로 이동하기 (0) | 2022.06.18 |
useState에서 이전 값을 참조하여 state값 변경하기 (0) | 2022.06.06 |