| If you tear out something like jQuery, you’re going to have to figure out a way to get those accordions to expand and collapse again. If you tear out React, you get a blank page. React is a big commitment. This is probably the only real concern I see. jQuery is a library for DOM manipulation. It can co-exist with many other libraries. React is an entire framework. These days you need jquery less because browsers are more standards compliant and css animations basically work. The trick is about using the right tool for the right job. We have several large react applications - these are user-interaction heavy rich single page apps. But we also use vanilla html and jquery dom manipulations in many other places. |
Originally, jQuery's big selling point wasn't that it handled animations, it was that it gave you a query selector, and one that could be used in any browser. jQuery predates the release of chrome, and came out a few years before document.querySelector was added to Firefox and Chrome was released.
jQuery was monumentally more useful for common actions compared to its contemporaries, such as Dojo, MooTools and Prototype.