DEV Community

loading...

Discussion on: Anybody still working with jQuery?

Collapse
gsto profile image
Glenn Stovall • Edited

Occasionally, I work on marketing sites with dynamic content. Just about every theme out there is going to have jQuery already, and it's simple to use.

I know you can do just about anything it can do with vanillaJS, but still I'd rather write

$('#login-form').click(doSomething)

over

document.getElementbyId('#login-form').addEventListener('click',doSomething)

And just this morning, I was debating whether an internal page with an AJAX form should be a bit of jQuery or a React component. I could make a case for each.