Nothing wrong with modularizing code or pulling in complicated things as a dependencies. Rewriting the same tools a million times isn't a great world either. The only thing I avoid/take issue with is pulling huge dependencies to use only a tiny part. Like I wouldn't base anything designed like this page in my projects, it pulls in 1 MB of React to dynamically display an image that updates once a day.
I've had great fun building my canvas element library entirely in Vanilla JS. The work has helped me discover parts of the JS/DOM ecosystem that I never realised even needed to exist.
Vanilla JS! 0 Dependencies!
Let the 1995 revolution begin!