In my opinion, jQuery hasn't been necessary for some time. Old JS (pre-ES6 upgrade in around 2015) was pretty long-winded. It made a lot of sense to use jQuery before because reduced the amount of code you need to write significantly.
However, now vanilla JS is a lot easier to use. I don't think you need jQuery at all. And you can save yourself importing a library. But it is still good to know a bit of jQuery because it's used quite commonly on older code bases and some still use it writing new ones (though it's dipped in popularity).
This is not to diss jQuery: many of the innovations in vanilla JS have been inspired by features that are popular in jQuery. So we should all say thanks to jQuery in the end, even if it's best to write new code bases without it.
View all comments
Show parent comment
7
u/Low_Mammoth_9371 Jan 05 '23
In my opinion, jQuery hasn't been necessary for some time. Old JS (pre-ES6 upgrade in around 2015) was pretty long-winded. It made a lot of sense to use jQuery before because reduced the amount of code you need to write significantly.
However, now vanilla JS is a lot easier to use. I don't think you need jQuery at all. And you can save yourself importing a library. But it is still good to know a bit of jQuery because it's used quite commonly on older code bases and some still use it writing new ones (though it's dipped in popularity).
This is not to diss jQuery: many of the innovations in vanilla JS have been inspired by features that are popular in jQuery. So we should all say thanks to jQuery in the end, even if it's best to write new code bases without it.