1.0.0 • Published 4 years ago
@abdulghani/axioshelper v1.0.0
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
);
1.0.0
4 years ago