connect
Wrapper for useStore to use during migration from redux and class-based projects. Will merge store value fields to component props
危险
Consider using hooks api in modern projects
connect(Store)(Component): Component
since
effector-react 21.0.6
Arguments
Store
(Store): store or object with stores
Returns
(Component) => Component
: Function, which accepts react component and return component with store fields merged in props
connect(Component)(Store): Component
Arguments
Component
(React.ComponentType): react component
Returns
(Store) => Component
: Function, which accepts a store and return component with store fields merged in props