Because with new ES6+ methods you can do many things simply in vanilla JS that previously required jQuery if you didn’t want to write a lot of verbose lines.
Using vanilla JS before document.querySelectorAll() came about without JQ was a pain.
In fact, querySelector is an idea taken from jQuery if I'm not mistaken. Same energy for ajax before Fetch API, which to put it simply was a pain to do with vanilla JS at those times. Ajax jQuery was a breeze.
-6
u/Negative12DollarBill Oct 02 '21
How could jQuery be replaced by ES6? That's like saying a semi-trailer was replaced by a power station, they're not even in the same category.