DEV Community

Discussion on: ¿Is using Jquery a bad practice nowadays?

Collapse
 
niorad profile image
Antonio Radovcic

For non SPAs (where you might prefer React/Vue/etc) it still has very convenient features.

  • You don‘t have to null-check selections, if no elements are in a collection, using it will just fail silently. Versus doing querySelector.
  • Syntax is often more readable, once you know what $ is.
  • Ajax does more than fetch (like sending certain headers).
Collapse
 
vitalcog profile image
Chad Windham

Um... your third point about jquery ajax does more than fetch isn't correct. fetch is a surprisingly low level api and you can absolutely set any header you want...

Collapse
 
niorad profile image
Antonio Radovcic

Sure I meant by default without any settings.