설치하기
@use-funnel
은 다양한 라우터와 호환됩니다. 다음 라우터를 지원하고 있어요.
- react-router (opens in a new tab)
- react-router-dom (opens in a new tab)의 경우
@use-funnel/react-router-dom
패키지를 사용해주세요.
- react-router-dom (opens in a new tab)의 경우
- next.js page router (opens in a new tab)
- next.js app router (opens in a new tab)의 경우
@use-funnel/browser
패키지를 사용해주세요. 현재 전용 어댑터를 지원하지 않으므로, 자세한 구현은 공식 가이드 (opens in a new tab)를 참고해주세요. - @react-navigation/native (opens in a new tab)
- browser history (opens in a new tab)
React 버전 확인하기
React | ^16.8 |
---|
설치 방법
사용할 라우터에 맞는 패키지를 선택해 설치해주세요.
npm install @use-funnel/react-router --save
npm install @use-funnel/react-router-dom --save
npm install @use-funnel/next --save
npm install @use-funnel/react-navigation-native --save
npm install @use-funnel/browser --save
원하는 라우터가 없거나, 직접 히스토리를 관리하고 싶다면 라우터 직접 만들기를 참고해 주세요.