Create a React SPA
This guide will bootstrap a React application with Vite, with the following features:
- Built using Vite
- Typechecking with TypeScript
- Code formatting with Prettier
Create project
Add Prettier
-
Install it from NPM
-
Create a
.prettierrc.json
file -
Create a
.prettierignore
file -
Add a
format
script in thepackage.json
-
Run the
format
script to format existing code
Next Steps
Last update:
August 12, 2023
Created: June 3, 2023
Created: June 3, 2023