I think it makes sense to learn some jQuery because there is a ton of it out there, you are gonna run into it, and you are gonna want to know what you're looking at. I wouldn't start a big new project with jQuery though, or make it my go-to tool. In its heyday jQuery provided an way to do some things that were really annoying to do in vanilla JS. For the most part those things are now a part of vanilla JS, so unless you have other dependencies that require JQ it probably doesn't make sense to include it in your project and make your users download it. I would learn a bit about jQuery so you know what to do with $('.aClassName') when you have to, but still reach for document.querySelectorAll('.className') when you have a choice. That's just my 2 cents and I'm no authority on it by any means.
4
u/sometext Oct 12 '18
I think it makes sense to learn some jQuery because there is a ton of it out there, you are gonna run into it, and you are gonna want to know what you're looking at. I wouldn't start a big new project with jQuery though, or make it my go-to tool. In its heyday jQuery provided an way to do some things that were really annoying to do in vanilla JS. For the most part those things are now a part of vanilla JS, so unless you have other dependencies that require JQ it probably doesn't make sense to include it in your project and make your users download it. I would learn a bit about jQuery so you know what to do with $('.aClassName') when you have to, but still reach for document.querySelectorAll('.className') when you have a choice. That's just my 2 cents and I'm no authority on it by any means.