Fetch api React component with support for function-as-child and render-prop implementations.
Using Yarn or NPM
yarn add @mikelspohn/react-fetch
npm install --save @mikelspohn/react-fetch
With Script Tag
git clone https://github.com/mikelspohn/react-fetch.git
cp ./react-fetch/dist/react-fetch/umd.js path/to/project
<script src='./react-fetch.umd.js'></script>
To make a rollup build just run rollup -c
assuming you have rollup installed
- Check browser compatability
- Cancellable requests
- HOC implementation (?)
- Optimize build size
- React doc-gen