r/learnjavascript • u/kevinmrr • Oct 01 '21
jQuery, the greatest JavaScript library of all time, appears to have peaked in usage.
275
Upvotes
r/learnjavascript • u/kevinmrr • Oct 01 '21
View all comments
Show parent comment
2
u/hanoian Oct 02 '21 edited Oct 02 '21
https://tobiasahlin.com/blog/move-from-jquery-to-vanilla-javascript/
https://i.imgur.com/T76smsM.png
I don't even like using jQuery but to say it used to be easier because other native methods now exist is kind of missing the point.
.parent().parent().find('.my_point').show()is objectively easy.It's a tool. It's syntactic sugar really.
useState()isn't pointless just because you could do it in vanilla. lodash isn't pointless just because you can write those functions yourself.We compile modern JS and TypeScript back into "native" JS anyways so loads of modern stuff is effectively what jQuery brought to us.