utBindElement
The function is mostly used to create Hook layout components sharing the same Reducer with other Hook Components.

The following actions are performed:
  • Connect the Reducer object to the Layout component
  • Dispatch the call/api action to the Reducer’s actions
  • Inject related properties to the Layout Component
  • utBindElement({name, layout, param}, init)

    #
    name: string

    Existing Reducer name.

    Note: It must be created before using utCreatElement().
    layout, param, init
    Refer to properties description of utCreateElement()

    Return

    #
    Standard React Element connected to Redux Store.

    Example

    #
    const Address = utBindElement({
        name: 'react-example/modal-hook',
        layout: address
    })
    Element Address is sharing the 'react-example/modal-hook' Reducer with other components.