A minimal template for building a React Router App with Cloudflare Pages.
- Vite + React Router v7 + React v19
- shadcn/ui - Beautiful and accessible components
- Biome - Fast and modern linter and formatter
- Deploy to Cloudflare Pages with zero configuration
app/
├── components/ # Reusable UI components
│ └── ui/ # shadcn/ui components
├── lib/ # Utility functions and configuration
├── routes/ # Route components and nested routes
├── entry.client.tsx # Client entry point
├── entry.server.tsx # Server entry point
├── root.tsx # Root layout component
└── routes.ts # Route configuration
# Install dependencies
pnpm i
# Start dev server at localhost:5173
pnpm dev
# Build for production
pnpm build
# Preview production build
pnpm preview
# Format code
pnpm format
# Run linter
pnpm lint
# Run formatter, linter and sort imports
pnpm check
MIT