DEV Community

[Comment from a deleted post]
Collapse
 
mariocalin profile image
Mario • Edited

I also agree that using jQuery now could make no sense. However, with these kind of articles I always find a lack of explanation of why not to use jQuery. Why not use jQuery?

Modern JS frameworks use its own way of handling DOM without needing jQuery. They even have problems if you try to mix both jQuery and its DOM handling. That could be a reason.

Also, Javascript itself has a lot of functionalities nowadays to make jQuery not needed.

However, if you don't use a modern JS framework tu create a web page. Does the fact of not using jQuery impact anything?

Collapse
 
ranjankumar666 profile image
Ranjankumar666

I think the main reason to ignore jquery is that vanilla js can do most things that jquery used to do for it.

Collapse
 
oenonono profile image
Junk

Yep, if you're choosing between a JS framework and jQuery and jQuery works for you, there's no reason at all not to use it. You're just trading off between different JS files, there's no objective reason that jQuery shouldn't be your JS file of choice. Every reason not to use is contextual and subjective, so make your choices based on your circumstances.