45
Create-react-app or Vue in 5 seconds

Presenting you the new build tool called
Vite.
Vite is a build tool which helps us for faster and leaner development experience for modern projects.
Let's get started without wasting the time...
There are different templates in vite:-
vanilla
vanilla-ts
vue
vue-ts
react
react-ts
preact
preact-ts
lit-element
lit-element-ts
svelte
svelte-ts
I am downloading a simple react template. you can choose any template in the list above.
We can do it in 3 simple steps:-
1:-
Choose anyone command as per you package configurations.
1:-
Choose anyone command as per you package configurations.
# npm 6.x
npm init vite@latest sample-app --template react
# npm 7+, extra double-dash is needed:
npm init vite@latest sample-app -- --template react
# yarn
yarn create vite sample-app --template react

2:-
Now we get into the folder
Now we get into the folder
sample-app
and install the required packages and dependencies usingnpm install

3:-
Now just run the following command to start the development environment
Now just run the following command to start the development environment
npm run dev

and that's it we are Done!
Visit the local server to see your react-app.
Visit the local server to see your react-app.

Have a look into my repos if intrested:-
My Github profile:- https://github.com/sk-ismail
45