DEV Community

[Comment from a deleted post]
Collapse
 
vtecrich profile image
RichW

Bit late to the party here but it really depends on what you are a building and the environments and browsers you need to be supporting. JQuery is still great for cross browser dom manipulation; if you work in a large company you'll still be supporting IE9 and possibly even IE8. JQuery is also useful if working with CMS's, and JQuery is fantastic at adding interactivity in these environments. Trying to drop in React to an Ektron site would be horrific. I wouldn't use React or Angular in these circumstances and I think the comparison is a little odd as JQuery and React / Angular are generally used for completely different things. You could do dom manipulation in vanillaJS but imo you'd be writing far more code, have to add polyfills for older browsers and that just doesn't make sense when you can use JQuery and write 100 less lines of code to achieve the same result.
This isn't to say vanilla JS can't be used for dom manipulation as new features allow for what JQuery used to do for us; however again if you are supporting older browsers this may not work. Typescript is an interesting one and again I could see this being used instead of JQuery.
If you're building an app or a SPA then JQuery is probably a poor choice unless again you use it for it's intended purpose of simple dom manipulation. JQuery was never meant as a framework for building apps or entire websites, (although you can use it for that if you so wish but I think it would be a nightmare). If you're building an app with JS it would make way more sense to use one of React or Angular as this is what they are intended for.