Functions
createConnect
- createConnect<T>(state: State<T>): <TProps, TFunctionProps, TOwnProps>(mapStateToProps: IMapStateToProps<RecordOf<T>, TProps, TOwnProps>, mapStateToFunctions?: IMapStateToFunctions<RecordOf<T>, TProps, TFunctionProps, TOwnProps>) => (Component: ComponentType<TOwnProps & TProps & TFunctionProps>) => ComponentClass<TOwnProps, any>
-
Type parameters
Parameters
Returns <TProps, TFunctionProps, TOwnProps>(mapStateToProps: IMapStateToProps<RecordOf<T>, TProps, TOwnProps>, mapStateToFunctions?: IMapStateToFunctions<RecordOf<T>, TProps, TFunctionProps, TOwnProps>) => (Component: ComponentType<TOwnProps & TProps & TFunctionProps>) => ComponentClass<TOwnProps, any>
-
- <TProps, TFunctionProps, TOwnProps>(mapStateToProps: IMapStateToProps<RecordOf<T>, TProps, TOwnProps>, mapStateToFunctions?: IMapStateToFunctions<RecordOf<T>, TProps, TFunctionProps, TOwnProps>): (Component: ComponentType<TOwnProps & TProps & TFunctionProps>) => ComponentClass<TOwnProps, any>
-
Type parameters
-
TProps = Record<string, unknown>
-
TFunctionProps = Record<string, unknown>
-
TOwnProps = Record<string, unknown>
Parameters
-
mapStateToProps: IMapStateToProps<RecordOf<T>, TProps, TOwnProps>
-
mapStateToFunctions: IMapStateToFunctions<RecordOf<T>, TProps, TFunctionProps, TOwnProps> = returnsEmptyObject as any
Returns (Component: ComponentType<TOwnProps & TProps & TFunctionProps>) => ComponentClass<TOwnProps, any>
-
- (Component: ComponentType<TOwnProps & TProps & TFunctionProps>): ComponentClass<TOwnProps, any>
-
Parameters
-
Component: ComponentType<TOwnProps & TProps & TFunctionProps>
Returns ComponentClass<TOwnProps, any>