Home > @elux/react-web > connectStore
connectStore() function
连接store与react组件
Signature:
export declare function connectStore<S = {}, D = {}, W = {}>(mapStateToProps?: (state: any, owner: W) => S, options?: Options<any, S, W>): InferableComponentEnhancerWithProps<S & D & {
dispatch: Dispatch;
}>;
Parameters
Parameter | Type | Description |
---|---|---|
mapStateToProps | (state: any, owner: W) => S | state与props之间的映射与转换 |
options | Options<any, S, W> | 连接参数设置 |
Returns:
InferableComponentEnhancerWithProps<S & D & { dispatch: Dispatch; }>