๐Ÿ”” Ding Dong - React 19 Template

May 21, 2025 ยท View on GitHub

Ding Dong React Rsbuild Tanstack Tailwind CSS TypeScript License

A lightning-fast, modern React template supercharged with Rsbuild

Welcome to Ding Dong, a cutting-edge React 19 template designed for modern web development. Built with performance, developer experience, and scalability in mind, Ding Dong provides a solid foundation for your next project.

This template leverages the power of Rsbuild for lightning-fast builds, React 19 for the latest React features, Tanstack Router for type-safe routing, Tanstack Query for efficient data fetching and state management, ShadCn/ui for beautifully designed and accessible components, and Tailwind CSS v4 for a utility-first CSS workflow.

โœจ Key Features

  • ๐Ÿš€ Blazing Fast Development: Powered by Rsbuild, experience near-instantaneous hot module replacement (HMR) and optimized production builds.
  • โš›๏ธ React 19: Utilize the newest features and improvements from the React core team.
  • ๐Ÿšฆ Type-Safe Routing & SSR: Tanstack Router offers a fully type-safe routing solution with built-in server-side rendering capabilities, catching errors at build time and providing excellent autocompletion.
  • ๐Ÿ”„ Effortless Data Management: Tanstack Query simplifies server-state management, offering caching, synchronization, and background updates out-of-the-box.
  • ๐ŸŽจ Stunning UI Components: Integrated with ShadCn/ui, providing a collection of beautifully crafted, accessible, and customizable React components built on Radix UI and Tailwind CSS.
  • ๐Ÿ’จ Utility-First Styling: Tailwind CSS v4 enables rapid UI development with its utility classes, now even more powerful and optimized.
  • ๐Ÿ“ฆ PNPM Ready: Uses pnpm for efficient package management, saving disk space and boosting installation speed.
  • TypeScript First: Written in TypeScript for enhanced code quality, maintainability, and developer productivity.

๐Ÿ› ๏ธ Tech Stack

TechnologyDescription
React 19Library for building user interfaces with the latest features and improvements (v19.1.0)
RsbuildHigh-performance build tool delivering lightning-fast build times (v1.3.15)
Tanstack RouterType-safe, modern routing library with first-class data loading and server-side rendering support (v1.120.5)
Tanstack QueryPowerful data synchronization for fetching, caching, and updating asynchronous data (v5.76.1)
Tailwind CSS v4Utility-first CSS framework with advanced features and smaller bundle size (v4.1.7)
shadcn/uiHigh-quality, accessible UI components built with Radix UI and Tailwind
TypeScriptStatic typing for safer, more maintainable code (v5.8.3)
pnpmFast, disk space efficient package manager

๐Ÿš€ Getting Started

Follow these instructions to get your project up and running:

  1. Clone the repository (if applicable) or use this template:

    # If you've cloned it
    git clone <repository-url>
    cd ding-dong-template
    
  2. Install dependencies using pnpm:

    Make sure you have pnpm installed. If not, you can install it via npm:

    npm install -g pnpm
    

    Then, install the project dependencies:

    pnpm install
    
  3. Run the development server:

    This command starts the Rsbuild development server with HMR.

    pnpm run dev
    

    Your application should now be running on a local port (Rsbuild will typically open it in your browser automatically due to --open flag in package.json).

  4. Build for production:

    This command creates an optimized production build in the dist folder.

    pnpm run build
    
  5. Preview the production build:

    This command serves the production build locally.

    pnpm run preview
    

๐Ÿ“œ Available Scripts

In the package.json file, you will find the following scripts:

  • pnpm run dev: Starts the development server with Rsbuild.
  • pnpm run build: Builds the application for production.
  • pnpm run preview: Serves the production build locally.

๐Ÿ“ Project Structure

ding-dong-template/
โ”œโ”€โ”€ .vscode/           # VS Code configuration
โ”‚   โ””โ”€โ”€ settings.json  # Editor settings
โ”œโ”€โ”€ src/
โ”‚   โ”œโ”€โ”€ components/    # UI components
โ”‚   โ”‚   โ””โ”€โ”€ ui/        # ShadCn UI components
โ”‚   โ”œโ”€โ”€ lib/           # Utility functions and shared code
โ”‚   โ”‚   โ””โ”€โ”€ utils.ts   # Utility functions
โ”‚   โ”œโ”€โ”€ routes/        # Tanstack Router route definitions
โ”‚   โ”‚   โ”œโ”€โ”€ __root.tsx # Root route definition
โ”‚   โ”‚   โ”œโ”€โ”€ about.tsx  # About page route
โ”‚   โ”‚   โ””โ”€โ”€ index.tsx  # Home page route
โ”‚   โ”œโ”€โ”€ styles/        # CSS styles
โ”‚   โ”‚   โ””โ”€โ”€ globals.css # Global styles
โ”‚   โ”œโ”€โ”€ env.d.ts       # Environment type definitions
โ”‚   โ””โ”€โ”€ main.tsx       # Application entry point
โ”œโ”€โ”€ components.json    # ShadCn UI configuration
โ”œโ”€โ”€ postcss.config.mjs # PostCSS configuration
โ”œโ”€โ”€ rsbuild.config.ts  # Rsbuild configuration
โ”œโ”€โ”€ tsconfig.json      # TypeScript configuration
โ””โ”€โ”€ package.json       # Dependencies and scripts

๐Ÿค” Why Choose Ding Dong?

  • Modern & Future-Proof: Built with the latest versions of industry-leading libraries and tools.
  • Developer-Centric: Focuses on providing a smooth and efficient development experience with type safety and fast feedback loops.
  • Performance Optimized: Rsbuild ensures your application is fast, both in development and production.
  • Scalable Foundation: The chosen stack is well-suited for building small to large-scale applications.
  • Beautiful by Default: With ShadCn/ui and Tailwind CSS, creating visually appealing interfaces is a breeze.
  • Type Safety Throughout: From routing to data fetching, enjoy comprehensive TypeScript support.
  • Server-Side Rendering: Take advantage of Tanstack Router's built-in SSR capabilities for improved SEO and initial load performance.
  • Production Ready: Optimized builds and sensible defaults make deployment straightforward.

Start your next React project with Ding Dong and experience the joy of modern web development!

๐Ÿค Contributing

Contributions are welcome! Please feel free to submit issues and pull requests.

๐Ÿ“„ License

This project is licensed under the MIT License.


โญ Star this repository if you find it useful! โญ

Made with โค๏ธ for the React community