What it sounds like you're referring to is the Create-React-App build tool, which does install several hundred NPM packages because it includes Webpack, Jest, and ESLint out of the box, and those have hundreds of transitive deps. That's a completely separate thing from the React library itself.
CRA also isn't the only way to set up a React app. For example, creating a project with Vite "only" installs about 60-ish packages, because it uses ESBuild and Rollup to compile and bundle instead of Webpack+Babel, and it also doesn't include Jest or ESLint by default.
So, sure, I wish CRA and the rest of the JS ecosystem had fewer dependencies. But, it's important to distinguish between "the library" and "the build tools often used to create projects".
Yeah WTF are JavaScript developers doing as a community? Just write vanilla JS, ES6+ has everything you need. Just nobody bothered to try create their own micro-framework for the application. React is bloated hot fucking garbage. Anything requiring even 1 package for Hello World is garbage. All this shit you're creating is making products worldwide insecure. You're only signing your own job losses once your company gets absolutely fucked over when the cyber attacks start between Russia, China and the West.
12
u/[deleted] Mar 30 '22
[removed] — view removed comment