Regular javascript would do what you need.
And just FYI, I had switched to fetch js, then to axios js.
However with the sucurity problems in axios I have even considered going back to jquery for some things, like where i need to post with ajax, or juat a quick partial page reload.
It's a shame really, because I liked axios js a lot, and it is so easy to use. But if they can't keep it secure, it's not for me.
But again some small regular JS is all you should need in my opinion.
I tried alpine js, but could not get a server fetched partial working with it with pagination, so for now it's fetch js and regular js I am using.. Even the creator of alpine has a video on server fetched partials.
I know I explained more than you ask, but just sharing some insights.