Docs

inject function

A react component decorator, returns a new component with the requested data injected as props

Arguments

NameTypeRequiredDefaultDescription
mapPropsToPathsfunction

a function which receives the props as arguments and returns an object of required resources to load.

props => ({injectAs: pathStr | {path, [where], [orderBy], ..} }

configobject

a config object. supports: liveEditedData

Methods

Returns - ReactComponent

a new higher order component