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-tsZero 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.tsxmain.tsxindex.cssroutes.tsxpublic/tests/App.test.tsx.github/workflows/ci.ymlDockerfiledocker-compose.ymlpackage.jsontsconfig.jsontsconfig.node.jsonvite.config.tstailwind.config.jspostcss.config.jseslint.config.jsprettier.config.jsvitest.config.tsREADME.md
Quick Start Commands
Generate Project
terminal
npx setupkaro init my-app --template react-tsNext 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-tsReplace 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