2.0.8 • Published 6 years ago

@stellar-apps/fetcher v2.0.8

Weekly downloads
-
License
MIT
Repository
github
Last release
6 years ago

@stellar-apps/fetcher

A useful set of components for fetching JSON data on both the client and server side.

Installation

yarn add @stellar-apps/fetcher

Usage

import * as Fetcher from '@stellar-apps/fetcher'


export default function App () {
  return (
    <Fetcher.FetcherProvider>
      <Fetcher.Fetch>
        {({status, response}) => status !== 'done' ? status : (
          JSON.stringify(response.data)
        )}
      </Fetcher.Fetch>
    </Fetcher.FetcherProvider>
  )
}
2.0.8

6 years ago

2.0.7

6 years ago

2.0.6

6 years ago

2.0.5

6 years ago

2.0.4

6 years ago

2.0.3

6 years ago

2.0.2

6 years ago

2.0.1

6 years ago

2.0.0

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago