■ 프로그래밍/React
React 초기 설치 명령어
hi_mj
2020. 4. 14. 23:41
React.js를 만들 때, 필요한 초기 세팅에 대해 알아보자.
Node.js(https://nodejs.org/en/) 다운 후 버전 보기
node -v // output: v12.16.1
npm -v // output: 6.13.4
아무정보도 안뜨면 node.js 재설치
리액트 폴더 생성
// 리액트폴더를 생성하고 싶은 폴더로 가서
npx create-react-app 폴더명
cd 폴더명
npm run start
Router 설치
npm install react-router-dom --save
SaSS 설치
npm install node-sass --save
Styled-Component 설치
npm add styled-components --save