utCreateElement
Performs the following functions:
  • Create the Reducer object in Redux Store
  • Connect the Reducer object to the Layout Component
  • Dispatch the call/api action the to Reducer’s actions
  • Inject related properties to the Layout Component
  • utCreateElement({reducer, layout, param}, init)

    #
    reducer: object
    Reducer object created by utReducer()
    layout: Component
    Hook/Class Component
    param: object
    Object used for extension of Layout component.  Refer to extension for more details.
    init: object
    Initial properties passed to Layout components when initialized.

    Return

    #
    Standard React Element connected to Redux Store.

    Example

    #

    Simple

    export default utCreateElement({ reducer, layout })

    With Extension

    export default utCreateElement({ reducer, layout,
       param:{
           extend: myExtension
       }
    })
    Refer to extension for more details.