withContext
API
withContext(Components, Context, ContextSelector)
Example:
withContext(ChildComponents,Context,{
dispatch: ctx => ctx.dispatch,
state: ctx => ctx.state,
})
withContext
links the context to ChildComponents. ContextSelector
is similar to Redux-mapStateToProps