React + Tailwind CSS + RSBuild Boilerplate

March 11, 2025 ยท View on GitHub

A minimal, high-performance React boilerplate featuring TanStack Router, ShadCN, Tailwind CSS v4, Biome, and RSBuild.

This boilerplate is designed to be as lightweight and unopinionated as possible, allowing you to quickly start developing and deploying React applications with modern tooling.

๐Ÿš€ Features

  • โšก Blazing Fast โ€“ Optimized for performance with RSBuild.
  • ๐Ÿ”„ Fast Refresh โ€“ Instant feedback during development.
  • ๐Ÿ—๏ธ React 19 โ€“ The latest version of React.
  • ๐Ÿ“‚ Routing & Lazy Loading โ€“ Efficiently load routes on demand.
  • ๐ŸŽจ Tailwind CSS v4 โ€“ Fully styled with utility-first CSS.
  • ๐Ÿ›  ShadCN/UI โ€“ Beautifully designed components.
  • ๐Ÿ”’ TypeScript โ€“ Fully typed for safety and productivity.
  • ๐Ÿ—บ Typesafe Navigation โ€“ Ensuring safe route handling.
  • ๐Ÿ”€ Hybrid Routing โ€“ Mix file-based and code-based routing.
  • ๐Ÿงน Biome for Formatting & Linting โ€“ Ensures clean and consistent code.

๐Ÿ“ฆ Installation

Clone the repository and install dependencies:

$ git clone https://github.com/mohmmedraad/TanStacked.git && cd TanStacked && pnpm install

๐Ÿ”ง Development

Copy .env.example to .env or .env.local:

$ cp .env.example .env

Start the development server:

$ pnpm dev

๐Ÿ—๏ธ Build

Generate a production-ready build:

$ pnpm build

๐Ÿš€ Deployment

Deploying to Vercel

  1. Push your code to a Git repository (GitHub, GitLab, or Bitbucket).
  2. Go to Vercel and create a new project.
  3. Import your repository.
  4. In the Build and Output Settings, set the Output Directory to dist.
  5. Click Deploy and your project will be live!

This boilerplate is your foundation for fast, modern, and scalable React applications. Happy coding! ๐ŸŽ‰