My main issue with the usage of frameworks is when they are used in a situation where they are clearly not needed. It seems common in my opinion that people who use npm, react etc. as a part of their work -- where we can assume for the sake of argument that it is necessary -- also use these same tools for minor hobby projects they're involved in, where it really wouldn't be necessary.<p>I've seen more than one "theme" for example for any generic site generator or blogging software that does nothing more than set up some CSS rules, define some views and use some very minor JS for interactivity, but still has a minified output ground through npm with the almost mandatory 200+ dependencies that of course break and cause security warnings over time.<p>I've also seen entire products written in a framework that seemed invincible in the day it was created, only to be a dinosaur everybody despises five years later when new functionality needs to be added. Frameworks inevitably makes me think of the poem "Ozymandias"[1], they accumulate as dead monuments over time, and it cannot be avoided.<p>So, what to do? Well, my humble and highly personal opinion is that two thoughts should at least be entertained:<p>1) Using less code and less infrastructure to "build" it may, for smaller projects, make them a lot more maintainable and robust over time<p>2) For larger projects, instead of hooking your cart to one framework for everything, focus on separating the functionality into different parts, so that at least when one of your frameworks need to be replaced five years down the road, you can keep using the other separate parts that work fine.<p>[1]: I met a traveller from an antique land,<p>Who said—“Two vast and trunkless legs of stone<p>Stand in the desert. . . . Near them, on the sand,<p>Half sunk a shattered visage lies, whose frown,<p>And wrinkled lip, and sneer of cold command,<p>Tell that its sculptor well those passions read<p>Which yet survive, stamped on these lifeless things,<p>The hand that mocked them, and the heart that fed;<p>And on the pedestal, these words appear:<p>My name is Ozymandias, King of Kings;<p>Look on my Works, ye Mighty, and despair!<p>Nothing beside remains. Round the decay<p>Of that colossal Wreck, boundless and bare<p>The lone and level sands stretch far away.”