본문 바로가기
TIL/TIL

React set up

by koreashowme 2020. 3. 4.

TWO wayts of creating the app

1. yarn 2. npm

 

yarn global add npx OR npm i npx -g 

=> create-react-app을 npx를 실행 할 수 있다.

 

npx create-react-app   // command

 

npx => 최신버전의 create-react-app을 다운 받는다. 

create-react-app을 실행하고 끝나면 컴퓨터에 삭제한다. 

 

npx create-react-app "projectName"

 

NPX는 최신버전 불러오게 해주고, 사용하지 않는 것을 삭제해준다.

 

DOWNLOAD (TERMINAL)

yarn add prop-types // COMMAND

yarn add react-router-dom // COMMAND

'TIL > TIL' 카테고리의 다른 글

readLine( ), print( )  (0) 2020.02.29
AJAX *helpful  (0) 2020.02.23
Prototype  (0) 2020.02.23
Event Loop & heap & stack  (0) 2020.02.23
비동기, 서버요청, this  (0) 2020.02.23

comment