This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
The React Compiler is enabled on this template. See this documentation for more information.
Note: This will impact Vite dev & build performances.
Use degit to copy the template to your local project.
# change `my-project` with your project name.
npx degit kamoteshake/minimal-react-vite-template#main my-project
# move to the project folder
cd ./my-project
# install all packages
yarn install
# start the app locally
yarn devIf you want to have your project linked to a repository, you can initialize git inside of your project folder.
# you can change `main` to your default branch
git init -b main
# adds a remote called origin which links to your git repository
# change `remote_repository_URL` to your git repository URL
git remote add origin <remote_repository_URL>
# commit changes
git add .
git commit -m "Initial commit"
# push the changes to the remote repository
# assuming your branch name is `main`
git push origin main# starts app locally
yarn dev
# builds a production-ready build
yarn build
# runs jest
yarn test
# runs jest with watch mode
yarn test:watch