As of now Create React App (CRA) is no longer the recommended way to start a react project. There have been many alternatives in ecosystem to pick from. One of such alternative which is gaining lots of attention is using the combination of Vite and PNPM.
What is Vite?
- To put it in few words, Vite is 10–100x faster than other JavaScript-based bundlers.
- This is because it’s written in Go and its dependencies are pre-bundled with esbuild.
- Also vite served the source code as native ESM, enabling on-demand transformation and loading for improved developer productivity.
What is PNPM?
- PNPM is a faster alternative to npm and yarn which optimizes your disk space and boost up your installation speed.
- You can also check out the bench mark page for more detailed analysis.
Building the Hello world App
For using vite and pnpm make sure you must have node version 16+ installed.
Once you have the correct node setup, you can now install pnpm . Run the below command to install latest version of pnpm .