jQuery is a bit of an interesting case, because it was so successful that it APIs got implemented in browsers themselves.
The advice that I’ve seen is that you should replace jQuery selector stuff with vanilla js and css whenever possible, and for a lot of projects that doesn't leave much.