Lilact
    Preparing search index...

    Function connect

    • Higher-order component that connects a component to store state and dispatch.

      Parameters

      • mapStateToProps: any

        Maps store state to the wrapped component's props.

      • mapDispatchToProps: any

        Maps dispatch (or action creators) to the wrapped component's props.

      Returns (WrappedComponent: any) => (props: any) => HTMLComponent

      A connected component that receives store-derived props.