Comment on Is jQuery still the go-to JS helper library?

<- View Parent
lemann@lemmy.one ⁨11⁩ ⁨months⁩ ago

For me it’s the ability to set up a shared instance with the base request URL, and set headers for things like the user’s token, allowing all requests made with that shared Axios instance to be sent to the right path with the token without needing to define them for each individual request.

To be honest though something similar can be done with spread syntax in the Fetch API’s options parameter

source
Sort:hotnewtop