createComponent(store, render)
#
Creates store-based React component. The createComponent
is useful for transfering logic and data of state to your View component.
tip
You can use hooks in createComponent
since effector-react@20.3.0.
Arguments
store
(Store | Object):Store
or object ofStore
render
(Function): Render function which will be called with props and state
Returns
(React.Component
)