npx create-react-app my-app
and watch how it says added 1484 packages in 1m
How in the world can this number of dependencies be considered sane and normal, and most of all, necessary?What's more is that this barebone source code already takes up 235 MB (!)
What the ...? Is this what it takes to display some rectangles and glyphs in a browser?
Check out Vite: https://vitejs.dev/
`npm create vite@latest`
run through the process
--> `added 217 packages`
Rather than hastily installing the latest shiny package, we should refactor and build reusable minimal utilities tailored to our domain.
Production React, on the other hand, appears to only have 2 deps: js-tokens and loose-envify
Those 1484 packages are simply for the build step. And having a lot of dependencies in a build tool isn't necessary "insane".
It doesn't answer to your question, but it does answer to mine on these flexes in HN around niche frameworks and the difficulty of putting them into context.
I'm glad people are working on alternative solutions, and maybe ten years from now everyone will be using something else. But right now, 235 MB is an awfully small price to pay for something that just works, especially as a lot of it doesn't actually show up in deployment.
Otherwise,. Just use HTMX if you want to minimize your JS footprint.
How in the world can this number of dependencies be considered
sane and normal, and most of all, necessary?
Wait until you find out how many parts are inside an internal combustion engine.