기타/React

react 환경설정

inanJeong 2020. 6. 29. 18:20

vscode
react

 

react 와 vscode를 이용한 react 개발

1. vscode 설치 : https://code.visualstudio.com/ 

 

Visual Studio Code - Code Editing. Redefined

Visual Studio Code is a code editor redefined and optimized for building and debugging modern web and cloud applications.  Visual Studio Code is free and available on your favorite platform - Linux, macOS, and Windows.

code.visualstudio.com

 

2. 터미널에서 react 설치

 

 1) react 설치

npm install -g create-react-app

 

2)  workspace 만들기

create-react-app my-app

 

3) 서버 실행

npm start

 

4) 작업 디렉토리