DEV Community

Discussion on: useAxios: React hook for any Axios call

Collapse
 
merthod profile image
Merthod

I believe there's already an axios hook on npm. Great dive though.

Collapse
 
kwhitejr profile image
Kevin White • Edited

Found it here: preview.npmjs.com/package/use-axios

though it looks like it just wraps another hook, useAsync: github.com/ArnoSaine/use-axios/blo...

Unfortunately I can't find the source code for the core useAsync hook :-/ Lastly, looks like the use-axios package contains no tests. Neither do I, yet :-) Buyer beware.