react-axios
Axios Component for React with child function callback. This is intended to allow in render async requests.
Features
- Same great features found in Axios
- Component driven
- Child function callback (error, response, isLoading, makeRequest, axios) => { }
- Auto cancel previous requests
- Debounce to prevent rapid calls.
- Request only invoked on prop change and isReady state.
- Callback props for onSuccess, onError, and onLoading
- Supports custom axios instances through props or a <AxiosProvider ... >
- Create your own request components wrapped using the withAxios({options})(ComponentToBeWrapped) HoC