2.0.8 • Published 5 years ago

@stellar-apps/fetcher v2.0.8

Weekly downloads
-
License
MIT
Repository
github
Last release
5 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

5 years ago

2.0.7

5 years ago

2.0.6

5 years ago

2.0.5

5 years ago

2.0.4

5 years ago

2.0.3

5 years ago

2.0.2

5 years ago

2.0.1

5 years ago

2.0.0

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago