React로 Watchapedia 구현하기 (2)

Inyeong Kang·2022년 6월 17일
0
  1. React Router DOM
    1) npm install react-router-dom

2) index.tsx에 코드 추가
import { BrowserRouter } from 'react-router-dom'
을 로 감싸주었다.

3) Route 태그와 Link 태그 적용

<Link to="/mypage">마이페이지</Link>
<Route path="/mypage" element={<Mypage/>} />
  1. Redux와 Recoil - 상태 관리 라이브러리

<Recoil 사용>
1) npm install recoil

2) index.tsx에 코드 추가
import { RecoilRoot } from 'recoil';
을 로 감싸주었다.

3) atom & selector
참고

profile
안녕하세요. 강인영입니다. GDSC에서 필요한 것들을 작업하고 업로드하려고 합니다!

0개의 댓글