|
|
|
|
|
by kaoD
3131 days ago
|
|
Don't. Please. I don't want to maintain your state spaghetti. Or if you don't have state to manage, but a few small interactions, just use the plain browser API. Back in the day jQuery was useful to maintain developer sanity across all the different browser API implementations and their quirks but, nowadays, it's mostly an unnecessary dependency. Even AJAX, which jQuery simplified immensely, has been superseded by fetch. 90% of jQuery code out there is querySelectorAll and fetch. |
|
Plain javascript is ideal. If for semi-unsimple form validation you need to reach for a full featured framework and create a reusable component that will only be used once, stop. jQuery can simplify the experience.