본문으로 건너뛰기

TanStack Router 설치 방법

사전 요구 사항

  • React 18.x.x 또는 19.x.x
  • createRoot를 지원하는 ReactDOM 18.x.x 또는 19.x.x
  • TypeScript 5.3.x 이상(권장)

설치 단계

  1. 패키지 설치

    패키지 관리자를 선택합니다.

    npm install @tanstack/react-router
    pnpm add @tanstack/react-router
    yarn add @tanstack/react-router
    bun add @tanstack/react-router
    deno add npm:@tanstack/react-router
  2. 설치 확인

    package.json에 패키지가 표시되는지 확인합니다.

    {
    "dependencies": {
    "@tanstack/react-router": "^x.x.x"
    }
    }