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