withEffects
withEffects
. For more information about it, you can look at withEffects
API and React class.contextType
.handler
, errorHandler
and aperture
will then be called with two arguments:initialProps
: the component props when your component is instantiatedinitialContext
: the value of Context
when your component is instantiatedinitialProps
:react-zap
react-zap
, which lets you consume React context directly via higher-order components.withEffects
, we can enhance the default withEffects
HoC by wrapping it with our context once in a sideEffects.js
file: