본문 바로가기

React

React 시작(실행)하기 - Windows(윈도우) 기준

다음 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

 

반응형