This package has been deprecated

Author message:

Permanently moved to @ebi-gene-expression-group/atlas-react-fetch-loader

atlas-react-fetch-loader

1.1.1 • Public • Published

Expression Atlas React Fetch Loader

Build Status Coverage Status

A HOC React component that enables other components to remotely fetch data from an endpoint.

Usage

import withFetchLoader from 'atlas-react-fetch-loader'
import MyComponent from 'my-component'

const MyComponentFoo = withFetchLoader(MyComponent)

<MyComponentFoo
  host={`https://domain.tld/path/`}
  resource={`json/endpoint`}
  {...passThroughProps} />

Be aware that fields in the JSON data overwrite values passed in as props.

Readme

Keywords

none

Package Sidebar

Install

npm i atlas-react-fetch-loader

Weekly Downloads

4

Version

1.1.1

License

Apache-2.0

Unpacked Size

15.2 kB

Total Files

5

Last publish

Collaborators

  • gxa