Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
Integrates ReScript and rescript-react into the official Vite React template for a typed frontend setup.

A full-stack Next.js TypeScript template focused on functionality over UI, featuring Zustand, TanStack Query, and ESLint 9 support.
The Vite React ReScript Starter is a boilerplate project that merges the official Vite React template with the ReScript language and its React bindings, producing a preconfigured starting point for typed, compiled-to-JavaScript frontend development.
The starter is a GitHub template maintained by jihchi that wires together Vite, React, ReScript, rescript-react, Vitest, React Testing Library, and Tailwind CSS into one project. Its core function is to let you write React applications in ReScript, a JavaScript-like language with a sound type system, instead of plain JavaScript or TypeScript. The template consumes the official Vite React template and adds ReScript compilation through the @jihchi/vite-plugin-rescript plugin, so you can develop components in ReScript files and get JavaScript output that runs in the browser.
npx degit jihchi/vitejs-template-react-rescript my-vitejs-react-rescript followed by npm install and npm start.The setup flow is a three-step process: first, use degit to clone the template into a new folder; second, install dependencies with npm; third, run npm start to launch the Vite dev server. The template includes the ReScript compiler plugin so .res files are compiled automatically as part of the Vite build.
The readme lists rescript-lang/create-rescript-app as a separate alternative for creating ReScript applications, focusing on a different scaffolding approach from this Vite-based template.
Yes, the template is publicly available on GitHub, and you can use the degit command to clone it for your own projects. The repository does not mention a commercial license, so it can be treated as an open-source starter.
It includes a Vite + React project configured for ReScript, with Vitest plus rescript-vitest for testing, React Testing Library for component tests, and Tailwind CSS for styling. The integration plugin is @jihchi/vite-plugin-rescript.
Because it is a template, you manage it like any Git repository: pull upstream changes if you kept the remote, or merge manually. The readme does not describe an auto-update mechanism.
The readme points to the current ReScript tooling and the vite-plugin-rescript maintained by jihchi, but it does not pin versions in the visible content, so you should check the repository for the latest dependency versions.
Yes, Vitest is configured as the unit-test framework, with rescript-vitest providing ReScript bindings and React Testing Library included for user-centric component testing.
