This is a simple template for a React application.
This template uses:
- Vite for bundling and running the dev server.
- Vitest for testing, along with React Testing Library
- ESLint for linting
To create a fresh copy of this project, you can use the tool degit:
npx degit makersacademy/react-template my-project --mode=git
cd my-project
npm installIf for some reason degit doesn't work for you, you can instead follow these
instructions:
- Clone this repo into a folder on your machine. eg.
git clone git@github.com:makersacademy/react-template.git my-project-name cdinto that foldercd my-project-name- Delete the git history:
rm -rf .git
The following can all be found under the "scripts" section in your
package.json. You can add more scripts here if you like, and run them with
npm run my-script.
npm run devnpm run testnpm run lintnpm run build