The zero-knowledge, copy/paste frontend development you’re describing is a big part of why so much of the web is such a bloated mess. It’s certainly not React or other FE frameworks that are the problem. At least not in and of themselves.
Citation needed. IMO most of the bloat comes from ad networks and tracking.