ViteReactStarter

vitejs-template-react-rescript — Vite Starter Template

By jihchi

A starter that integrates ReScript and rescript-react into the official Vite React template, with Vitest and Tailwind CSS configuration included.

Explore the design

Compare the page layouts and mobile experience. Open any screenshot for a closer look.

2 previews
Desktop homepage1 / 2
Desktop captureTop of page

Actual screenshot captured by the server browser.

All pages & views 2

Screenshots show visual appearance; interactive behavior may differ.

Recorded 2026-10-02View source

What stands out

A quick read of the recorded project description.

01

Integrates ReScript and rescript-react into the official Vite React template

02

Connects ReScript compilation into Vite via @jihchi/vite-plugin-rescript

03

Built-in Vitest unit testing with rescript-vitest bindings

04

Uses React Testing Library for testing UI components

05

Styling uses Tailwind CSS

06

MIT license, allowing free use, modification, commercial use, and distribution

Template Details

This is a Vite-based React starter template whose core work is integrating ReScript and rescript-react into the official Vite React template. The project connects ReScript compilation into the Vite pipeline via @jihchi/vite-plugin-rescript, so React components can be written in ReScript within the same project.

The template also includes testing and styling configuration: Vitest is used as the unit testing framework, together with rescript-vitest bindings and React Testing Library for testing UI components; styling uses Tailwind CSS. The README's getting-started approach is to pull the repository with npx degit, install dependencies, then run npm start.

The repository uses the MIT license, allowing free use, modification, commercial use, and distribution of this version of the code, provided the copyright notice and license notice are retained when distributing. Licenses for third-party assets such as demo images, fonts, and icons must be checked separately; external services such as domains and hosting may incur separate charges. The alternative listed in the README is rescript-lang/create-react-app (pointing to create-rescript-app).

ViteReactStarter

Is it right for your project?

Use Cases

  • New projects that want to write React components in ReScript while keeping the Vite development workflow
  • Engineering work that needs to configure Vitest and React Testing Library in a ReScript project
  • React starter projects that want Tailwind CSS as the styling approach
  • Developers who want to reference how ReScript integrates with Vite (vite-plugin-rescript)

Suitable For

  • Frontend developers familiar with ReScript or willing to learn it
  • Teams using the Vite and React stack
  • Projects that need baseline configuration for unit testing and component testing
  • Projects that prefer Tailwind CSS utility-class styling

Getting started & customization

Use these recorded setup notes alongside the repository instructions for your chosen version.

  1. 1

    Pull the template with npx degit jihchi/vitejs-template-react-rescript my-vitejs-react-rescript

  2. 2

    After entering the directory, run npm install to install dependencies

  3. 3

    Run npm start to launch the development environment

  4. 4

    ReScript compilation is connected to Vite via @jihchi/vite-plugin-rescript, so no separate compilation pipeline configuration is needed

  5. 5

    Third-party assets and external services must be confirmed separately according to their respective licenses or billing rules

Read repository instructions

License & source material

Usage conditions & limitations

Free to use · keep license notice

This entry covers the free version under the MIT license in the public repository; the free scope is this version of the code and does not mean external services or third-party assets are free.

Must comply with when using

  • Free use, modification, commercial use, and distribution of this version of the code are permitted.
  • When distributing copies or substantial portions of the code, retain the original author's copyright notice and the complete MIT license notice.
  • The code is provided as is; warranties and limitations of liability are governed by the original license and applicable law.

Additional costs & items to verify

  • Demo images, fonts, icons, and other third-party assets must be checked under their respective licenses and cannot be judged solely by the code's MIT license.
  • External services such as domains, hosting, databases, payments, or AI may incur separate charges.
View Original Text Basis

Compiled by DeepSeek based on repository license and README ·2026-10-02. Results only cover the materials read; dependencies, images, fonts, and subsequent term changes are subject to their respective original texts.

Project checks & description sources

Template Information

Source platforms
GitHub
Documentation and maintenance reference score
More documented · 90 / 100
Technologies
Vite · React
Website type
Starter
How this score is calculated

Our heuristic uses license records (up to 30), a demo link (12), a preview (10), stars (15), recorded maintenance (15), description completeness (8), feature records (5) and classification data (5). It is not a code, security or performance test, or a Google score. A link does not establish tested functionality.

What to verify for this project

Repository update recorded
2025-09-13
Screenshot last checked
2026-10-02

A demo link is listed. Check it with your own content and viewport sizes; its presence does not confirm that forms, authentication or payments work.

The catalog identifies Vite as the primary stack. Check the actual dependency manifest and lockfile for versions and hosting requirements. These notes use recorded metadata, not a code audit or a deployment test.

Use a selection guide →

How this description was prepared

AI-assisted description based on catalog records and repository material. Repository authors are not automatically the reviewers of this description.

Automatically checked against source and license rules; no manual editorial review.

Inspect the recorded source material

SHA-256: f6cdfdc81f5b7a9009a4809b196f3ac8564a490286270e4e210f59bfa884f5f2

2026-10-02T11:42:57.454Z

Source file / repository
# Vite React ReScript Starter

- [Vite](https://vitejs.dev): Next Generation Frontend Tooling.
- [React](https://reactjs.org): A JavaScript library for building user interfaces.
- [ReScript](https://rescript-lang.org): The JavaScript-like language you have been waiting for. (previously known as BuckleScript and Reason)
  - [@jihchi/vite-plugin-rescript](https://github.com/jihchi/vite-plugin-rescript): Integrate ReScript with Vite seamlessly.
- [vitest](https://vitest.dev/): A blazing fast unit-test framework, powered by [Vite](https://vitejs.dev) ⚡️.
  - [rescript-vitest](https://github.com/cometkim/rescript-vitest): ReScript bindings to Vitest.
  - [React Testing Library](https://testing-library.com/docs/react-testing-library/intro/): Helps you test UI components in a user-centric way.
- [Tailwind CSS](https://tailwindcss.com): A utility-first CSS framework for rapid UI development.

## Getting Started

```sh
npx degit jihchi/vitejs-template-react-rescript my-vitejs-react-rescript
cd my-vitejs-react-rescript
npm install
npm start
```

## Alternatives

- [rescript-lang/create-react-app](https://github.com/rescript-lang/create-rescript-app)

## Contributors

Many thanks for your help!

<a href="https://github.com/jihchi/vitejs-template-react-rescript/graphs/contributors">
  <img src="https://contrib.rocks/image?repo=jihchi/vitejs-template-react-rescript" />
</a>

The image of contributors is made with [contrib.rocks](https://contrib.rocks).
Report a correction

Explore similar templates

Compare previews and descriptions within the same stack and category.

react-starter-kit

react-starter-kit

A full-stack SaaS monorepo starter built on Vite and React, with Bun, TypeScript, tRPC, Drizzle ORM, Better Auth, Stripe, and Cloudflare Workers. It includes email OTP, passkey, Google OAuth, organizations, subscription billing, Drizzle migrations, seed scripts, and Terraform infrastructure.

Vite · SaaS

cove

cove

Cove is a minimal TanStack Start starter template maintained by mugnavo, integrating React, TanStack Router/Query, Tailwind CSS, shadcn/ui, Drizzle ORM with PostgreSQL, Better Auth, Vite Plus, and Nitro.

Vite · SaaS

vite-react-boilerplate

vite-react-boilerplate

A production-ready Vite + React starter template with TypeScript, Tailwind CSS, TanStack Router/Query/Table, Storybook, React Hook Form + Zod, Vitest and Playwright testing, plus Husky/Commitizen/Commitlint commit conventions.

Vite · Starter

react-vite-admin

react-vite-admin

A backend management starter built on Vite and React, integrating Recoil, React Query, TypeScript, and Axios, with Ant Design-style interface screenshots. Suitable as a starting point for management-side projects, licensed under MIT, with Chinese documentation and common scripts.

Vite · Admin dashboard

typescript-react_best_practices-vite_template

typescript-react_best_practices-vite_template

A Vite + React + TypeScript starter template by CodelyTV, preconfigured with Jest and React Testing Library unit tests, Cypress end-to-end tests, ESLint and Prettier using Codely's shared configuration, GitHub Actions workflows, a Makefile, and Sass.

Vite · Starter

cloudflare-starter-kit

cloudflare-starter-kit

A Cloudflare Workers project scaffolding template maintained by kriasoft, using Vite and TypeScript, with three built-in workspaces: api, app, and edge, and preconfigured local testing, multiple environments, and a GitHub Actions deployment workflow.

Vite · Starter