Web/React

React 세팅 (라이브러리 설치법이 계속 쌓일 예정)

또롱또 2022. 5. 13. 17:46
728x90

npx CRA 추가

npx create-react-app 폴더이름

npm 시작

npm run start

 

npm Styled Components, normalize, reset

npm install styled-components
npm install styled-normalize
npm install styled-reset

 

npm redux, react-redux, toolkit

npm install react-redux
npm install redux

// 동시설치
npm install react-redux redux

// tool
npm install @reduxjs/toolkit

npm tailwind css

npm install -D tailwindcss@npm:@tailwindcss/postcss7-compat postcss@^7 autoprefixer@^9

 

 

yarn 설치

npm install -g yarn

yarn CRA 추가

yarn add global create-react-app

yarn 프로젝트 생성

yarn create react-app 프로젝트이름

yarn 시작

yarn start

yarn styled component

yarn add styled-components

yarn Router

yarn add react-router-dom

 

 

yarn redux

yarn add redux react-redux
728x90

'Web > React' 카테고리의 다른 글

React Hook 01 - useState()  (0) 2022.05.15
React - 파일 만들때는 .jsx파일  (0) 2022.05.14
React - Component  (0) 2022.05.13
React - State  (0) 2022.05.13
React - Warning 메세지 안뜨게 하기  (0) 2022.05.13