Skip to content

kamoteshake/minimal-react-vite-template

Repository files navigation

React + TypeScript + Vite

This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.

Package Manager

Installed Packages

React Compiler

The React Compiler is enabled on this template. See this documentation for more information.

Note: This will impact Vite dev & build performances.

Usage

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 dev

Git

If 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

Scripts

# starts app locally
yarn dev

# builds a production-ready build
yarn build

# runs jest
yarn test

# runs jest with watch mode
yarn test:watch

About

Minimal react template using Vite for small and quick react projects

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors