📄️ Getting Started
- An easy way to handle api calls in react application
📄️ Using API Provider
The API provider component comes with a bunch of props which is used to configure the setup for the developers.
📄️ Using useApi
The library also ships with a useApi hook which will consume the ApiProvider.
📄️ Using fetchBaseQuery
fetchBaseQuery is a function which is used in conjunction with the API Provider Component. It is a wrapper around fetch which help us to make a basequery with providing the base url and adding any extra fetch options like headers if needed.
📄️ Using query hook
As we know for every query object defined in the apiArray we get a hook respectively. In this we will learn about the query hook.
📄️ Using mutation hook
As we know for every query object defined in the apiArray we get a hook respectively. In this we will learn about the mutation hook.
📄️ Examples
Basic Example