(
mapToProps?: mapToProps<S>,
actions = {}
)
| 55 | } |
| 56 | |
| 57 | export default function connect<S = any, P = any>( |
| 58 | mapToProps?: mapToProps<S>, |
| 59 | actions = {} |
| 60 | ) { |
| 61 | return (Child: any) => |
| 62 | class ConnectWrapper extends React.Component<P> { |
| 63 | render() { |
| 64 | const { props } = this; |
| 65 | |
| 66 | return ( |
| 67 | <Connect {...props} mapToProps={mapToProps} actions={actions}> |
| 68 | {(mappedProps: object) => <Child {...mappedProps} {...props} />} |
| 69 | </Connect> |
| 70 | ); |
| 71 | } |
| 72 | }; |
| 73 | } |
no outgoing calls
no test coverage detected