Stop ❌ using npx create-react-app for your React Projects! 👎 It is slow 👎 Compiling takes a long ti

preview_player
Показать описание
Stop ❌ using npx create-react-app for your React Projects!

👎 It is slow
👎 Compiling takes a long time
👎 Refresh time is long as well

Instead, use Vite
👉 run non create Vite
👉 Name your react project
👉 I like to use Typescript
You can use Typescript + SWC as it compiles much faster. It’s the new JavaScript compiler used by NextJS
👉 CD into your project
👉 run npm install
👉 And now do npm run dev

✅ Your server will start much faster now
✅ And updates are much faster as well

And this is because Vite does not use bundling instead it serves raw JavaScript on demand, and the browser is in charge of the bundling.

Save this for later 👉

#coder #coderlife #coderlifestyle #coding #codinglife #developer #developers #developerlife #reactjs #reactjsdeveloper #webdeveloper #webdevelopment #webdevelopers #javascript #typescript #javascriptdeveloper #programmer #programmerlife #programmerhumor #codinghumor #codingmemes #vite
Рекомендации по теме
Комментарии
Автор

Using vite for speed and Then installing with npm💀💀💀

nicksan
Автор

Just don’t use web based apps on an OS that has made a whole UI framework, low level graphics interopability APIs and a whole input system for any kind of input device (including accessibility).

kbanvalaki
Автор

Stop using create-react-app all together. 😂

ApolloSevan
Автор

Stop using react all together lmao what

TK-wkhs