Skip to content

Instantly share code, notes, and snippets.

@exhq
Created March 8, 2024 18:23
Show Gist options
  • Save exhq/0bc6da381cc7cf0053b1d619164e33ef to your computer and use it in GitHub Desktop.
Save exhq/0bc6da381cc7cf0053b1d619164e33ef to your computer and use it in GitHub Desktop.
the way react should be used.

let's try using create react app and time it.
image
this is not a system bottleneck. im running all the tests here on a hetzner dedicated server.
image

well, i dont like using create-react-app either. let's try something like vite. image
why is it so fast? oh right. vite just made the file structure.
let's try installing everything and checking the size of node_modules.
image that was way faster than create-react-app. but how about the node_modules directory? image
well, if you compair it with create-react-app, you might think its really good. but let's try another approach as well
this is all you need to compile react. how many lines is that? 30? half of it are comments.
if you're complaining about the fact that the jsx is compiled client-side, you might want to look at this amazing video by tsoding. he uses babel on node.
its crazy how there's almost no tutorials teaching you how cre or vite+react works. its just "hey run this command and that command and then poof you have react!!1111!!".
im no webdeveloper (thankfully), but even i can see these root problems in your community.
using programs that install fucking 300MB of random shit that you probably wont even use just so you can have a basic react project.

in conclusion; i have a lot of respect for you webdevs, you're the people that keep us connected. please fix your community to not lose that respect

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment