Git Bash파일 만들기

pwd #현재 내가 위치하고 있는 곳이 어디인지 확인해보세요.

cd 폴더이름 #리액트 프로젝트를 생성하고 싶은 폴더로 들어갑니다.

yarn create react-app nminyfile #프로젝트 생성!

yarn 에서 styled-components 설치

yarn add styled-components

리덕스 설치

yarn add redux react-redux

# 아래와 같은 의미
yarn add redux
yarn add react-redux

react-router-dom 설치하기

yarn add react-router-dom

툴킷 설치하기

yarn add react-redux @reduxjs/toolkit

 

axios 설치

yarn add axios

json-server 설치

yarn add json-server

json-server --watch db.json --port 4000(번호) 입력
bash: json-server: command not found 뜨면

npm install -g json-server 하고 다시

json-server --watch db.json --port 번호 입력

Lodash라이브러리 설치

yarn add lodash

폴더 구조 생성하기

글로 정리하기..

+ Recent posts