@abdulghani/axioshelper
v1.0.0
Published
small function helps to setup axios instance
Downloads
5
Maintainers
Readme
Axios helper function
to create axios instance based on url and config
Usage
import { createInstance } from "@abdulghani/axioshelper";
const myInstance = createInstance({ url: "http://myapiaddress.com/", timeout: 5000 });
// usage
myInstance.get(
`endpoint1`,
{ page: 2 },
cancelToken
);