본문 바로가기
Programming/기타

React 실행하기

by 오늘 하루s 2024. 6. 19.
728x90

 

 

yarn 설치

npm install -g yarn

 

create-react-app 설치

npm install -g create-react-app

 

 

프로젝트 생성(여기서는 client 이름의 프로젝트)

npm install -g create-react-app client

 

 

client 경로에서 react 서버 실행

cd client
yarn start

 

 

http://localhost:3000에서 화면을 띄울 수 있다.

728x90