DEV Community

Discussion on: JavaScript or JQuery? Which do you use?

Collapse
 
antonmelnyk profile image
Anton Melnyk • Edited

jQuery should be used only in legacy systems where you can't just scrap it.

Otherwise, it's basically a redundant library nowadays. jQuery was good when browsers had different API and it was really hard to work with DOM. Now pure JS can do mostly the same that jQuery was used for.

Yes, maybe you can get some benefits at some edge cases, I know it's still widely used in WordPress websites, where people usually just build the site from "ready-to-go" blocks like calendars, image sliders, etc and jQuery "ecosystem" has a lot of them to offer and is pretty easy and straightforward to use.

But with the same effort, you can just add some Vue/React components and have more maintainable and modern code.

Collapse
 
urielbitton profile image
Uriel Bitton

true. I use a lot f wordpress so jquery was very handy, but im starting to move away from and jquery and now towards ES6