Create React App Vite [](https://github.com/laststance/vite-react-ts-alter/actions/workflows/typecheck.yml) [](https://github.com/laststance/create-react-app-vite/actions/workflows/test.yml) [](https://github.com/laststance/create-react-app-vite/actions/workflows/build.yml) [](https://github.com/laststance/create-react-app-vite/actions/workflows/lint.yml)

May 5, 2026 ยท View on GitHub

Simple CRA style Vite template.
Create plain and lightweight React+TS programming environment.
And an easy migration base for create-react-app to Vite.

Try this Online!

This is a Vite template on top of the official Vite react-ts template (npm init vite@latest myapp -- --template react-ts) and some extended setup.
I'd like to keep CRA like experience as much as possible, so improving/adding feature Pull Request is really welcome!

All npm packages are updated to the latest release version powered by Dependabot.

Installation

npx tiged laststance/create-react-app-vite myapp

pnpm

cd myapp
pnpm install
pnpm validate
pnpm start

If you don't need TailwindCSS, run pnpm remove:tailwind after npm is installed.

Commands

pnpm dev             # start development server
pnpm start           # start development server
pnpm validate        # run test,lint,build,typecheck concurrently
pnpm test            # run jest
pnpm lint            # run eslint
pnpm lint:fix        # run eslint with --fix option
pnpm typecheck       # run TypeScript compiler check
pnpm build           # build production bundle to 'dist' directly
pnpm prettier        # run prettier for json|yml|css|md|mdx files
pnpm clean           # remove 'node_modules' 'yarn.lock' 'dist' completely
pnpm serve           # launch server for production bundle in local
pnpm remove:tailwind # remove TailwindCSS

CRA to Vite migration guides

Background

Simply put, CRA development has stopped as of 2023. This has sparked a discussion about replacing CRA with Vite for official documentation recommendations. Replace Create React App recommendation with Vite Dan Abramov offered some plans for the future of the CRA in his comments, but no direct answers were given. https://github.com/reactjs/react.dev/pull/5487#issuecomment-1409720741

The React community is still buzzing around Server Component after May 2023, but there is still a high demand for the React SinglePageApplication starter that the CRA has served in the past, and I was one of the people who needed it, so I decided to create a template in Vite that could be used as much as possible like CRA.

License

MIT

Contributors โœจ

Thanks goes to these wonderful people (emoji key):

ryota-murakami
ryota-murakami

๐Ÿ’ป ๐Ÿ“– โš ๏ธ
Hung Viet Nguyen
Hung Viet Nguyen

๐Ÿ’ป
Shay Cojocaru
Shay Cojocaru

๐Ÿ“–
NateAGeek
NateAGeek

๐Ÿ›
sickhippie
sickhippie

๐Ÿ’ป
Amit
Amit

๐Ÿ“–

This project follows the all-contributors specification. Contributions of any kind welcome!