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.jsonfile -
Create a
.prettierignorefile -
Add a
formatscript in thepackage.json -
Run the
formatscript to format existing code
Next Steps
Last update:
August 12, 2023
Created: June 3, 2023
Created: June 3, 2023