So if it's from Vue.js you might wonder... how come I use it to create a React project if it represents that it would be the direct competition? Well, because Vite is an authoring tool, totally agnostic and the tool itself guides us to create a React application as we will see below.
And I can already tell you that the result is impressive, the speed with which it is created and the speed with which you can start working on your project.
yarn create @vitejs/app
In my case richi.codes
Scaffolding project in /richi.codes.... ? Select a template: ... vanilla vue vue-ts ❯ react react-ts preact preact-ts lit-element lit-element-ts
I choose React.
We already have our project created now we just need to install and run it.
cd richi.codes yarn yarn dev ✨ Done in 130.42s.
I have to say that compared to create-react-app, Vite is really faster and the result is amazing. It also seems that the project size is smaller than create-react-app, so if you are going to create a new project, Vite is really an option to consider.