Skip to content

Fetch api react component with support for multiple usage patterns

Notifications You must be signed in to change notification settings

mikeLspohn/react-fetch

Repository files navigation

CircleCI

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>

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

About

Fetch api react component with support for multiple usage patterns

Resources

Stars

Watchers

Forks

Packages

No packages published