Requirements
Before installing the React Router SDK, ensure you have:- React 18+ - The SDK requires React 18 or later
- React Router v7 - Built specifically for React Router v7
- pnpm 8+ (recommended) - Or npm 9+
- Wacht Deployment - A Wacht deployment with a public key
Installation
Install the React Router SDK and its dependencies:Environment Variables
Add your Wacht public key to your environment variables:TypeScript Configuration
The SDK includes TypeScript definitions out of the box. No additional configuration is needed if you’re using TypeScript.Peer Dependencies
The SDK has the following peer dependencies that must be installed in your project:Verification
To verify the installation:Next Steps
- Quick Start - Get started with a basic setup
- Setup Guide - Detailed configuration guide
- Components Reference - Available components
- Hooks Reference - Available hooks
