I guess I should do more of my own research (I am security ops, not dev) but when did jQuery become legacy?
The most famous likely being the selector querying functionality, and the event management (and I'm sure others I am not thinking of).
jQuery still works, but under the hood it's just proxying those native methods, so you might as well just use those native methods directly.