DEV Community

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

Collapse
 
reegodev profile image
Matteo Rigon

I agree on the first point, you don't need any framework to learn Javascript, actually it would be better to learn React or Vue after you have a solid knowledge of Javascript and ES6, so most of the "magic" those frameworks provide is easily understood.

I don't agree on the second point though, jQuery was absolutely needed because browsers (IE mostly) didn't have a consistent API, and making something work across all devices was a nightmare( just think about manipulating classes before HTMLElement.classList was introduced). Nowadays on the other hand, every modern browser has a basic set of DOM features that don't need normalization, and using jQuery is the same as using React or Vue: you are using an abstraction on top of the standard API, but while React and Vue offer something more than just a DOM abstraction, jQuery stops there. It's true that some APIs are more friendly in jQuery, but you just end up loading an external dependency for commodity