@paraboly/axios-client
v0.0.13
Published
Axios-Client ready to use library.
Downloads
11
Maintainers
Readme
Installation
Add the dependency:
Pure React Native:
npm i @paraboly/axios-client
Usage
import { Api } from "@paraboly/axios-client";
// Setup One Time
Api.setup({
baseUrl: "your-base-url"
});
// Use it anywhere with automatic handlers
Api.get("/your-path")
.then(res => console.log("res:", res))
.catch(err => console.log("error: ", err));
Author
paraboly, [email protected]
License
Paraboly Axios-Client Library is available under the MIT license. See the LICENSE file for more info.