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
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.