JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 3
  • Score
    100M100P100Q29379F
  • License Apache-2.0

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

Package Exports

  • @ebi-gene-expression-group/atlas-react-fetch-loader

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@ebi-gene-expression-group/atlas-react-fetch-loader) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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 '@ebi-gene-expression-group/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.