0.4.4 • Published 6 years ago
@mikelspohn/react-fetch v0.4.4
react-fetch
Fetch api React component with support for function-as-child and render-prop implementations.
Installation
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>
Examples
Documentation
Development
To make a rollup build just run rollup -c
assuming you have rollup installed
TODO
- Check browser compatability
- Cancellable requests
- HOC implementation (?)
- Optimize build size
- React doc-gen