connected-unstated
v0.0.4
Published
hoc for unstated
Downloads
18
Readme
connect-unstated
connect hoc for unstated
Installation
yarn add connect-unstated
Guide
connect(container args)(mapContainersToProps)(App)
Examples
HOC
const mapContainersToProps = (
connA: ContainerA,
connB: ContainerB,
ownProps: IProps
) => ({
update: connA.update,
get: connA.get,
list: connA.list,
check: connB.check
id: ownProps.match.params.id,
})
export default connect(
ContainerA,
ContainerB
)(mapContainersToProps)(App)