Back to Templates
React + TypeScript

React + TypeScript Starter with Vite, Tailwind, Vitest & Docker

Vite + React + TS with Tailwind and React Router

terminal
npx setupkaro init my-app --template react-ts
Zero installNo telemetryMIT License

What's Included

  • React 18 + TypeScript 5 (strict) with Vite 5
  • Tailwind CSS 3 + PostCSS + Autoprefixer
  • React Router 6 for client-side routing
  • Vitest + React Testing Library + jsdom
  • ESLint (typescript-eslint, react-hooks, jsx-a11y) + Prettier
  • Husky + lint-staged for pre-commit hooks
  • GitHub Actions: typecheck, lint, test, build
  • Multi-stage Dockerfile (nginx static serving) + docker-compose
  • Generated README with scripts, folder structure, deployment

Generated Folder Structure

src/
components/
pages/
App.tsx
main.tsx
index.css
routes.tsx
public/
tests/
App.test.tsx
.github/workflows/ci.yml
Dockerfile
docker-compose.yml
package.json
tsconfig.json
tsconfig.node.json
vite.config.ts
tailwind.config.js
postcss.config.js
eslint.config.js
prettier.config.js
vitest.config.ts
README.md

Quick Start Commands

Generate Project

terminal
npx setupkaro init my-app --template react-ts

Next Steps

cd my-app
npm install
npm run dev

Frequently Asked Questions

Why Vite instead of Create React App?
CRA is deprecated. Vite is faster, actively maintained, and the default for React projects.
Can I use this with Next.js instead?
Use the `nextjs` template for Next.js 14 App Router. This template is for SPA/Vite projects.
Does it include state management (Redux, Zustand)?
No — the template is unopinionated about state. Add your preferred library after generation.
What about testing — Vitest or Jest?
Vitest (Vite-native, faster, Jest-compatible API). Configuration in vitest.config.ts.

Generate Another Template

React + TypeScript

Vite + React + TS with Tailwind and React Router

terminal
npx setupkaro init my-app --template react-ts

Replace my-app with your project name.

Ready to generate your React + TypeScript project?

One command. Production-ready. Start building in seconds.

terminal
npx setupkaro init my-app --template react-ts