imports/vx/client/code/vxapp.js
/**
     * Given a layout component and content return a combined React element that is ready for
     * mounting.
     *
     * @param {function} layout React layout (e.g., LayoutStandard).
     * @param {function} content React content (e.g., <EntityBody/>).
     * @return {object} Element combined with content.
     */
Given a layout component and content return a combined React element that is ready for
mounting.

@param {function} layout React layout .
@param {function} content React content .
@return {object} Element combined with content.
Given a layout component and content return a combined React element that is ready for mounting . @param { function } layout React layout . @param { function } content React content . @return { object } Element combined with content .
routeElement(layout, content) {
        try {
            if (layout && content) {
                console.log("vxapp.js routeElement will layout and return react element for route")
                OLog.debug("vxapp.js routeElement will layout and return react element for route")
                return React.createElement(layout, { content : content })
            }
        }
        catch (error) {
            OLog.error(`vxapp.js routeElement unexpected error=${error}`)
        }
    }
routeElement ( layout , content ) { try { if ( layout && content ) { console . log ( "vxapp.js routeElement will layout and return react element for route" ) OLog . debug ( "vxapp.js routeElement will layout and return react element for route" ) return React . createElement ( layout , { content : content } ) } } catch ( error ) { OLog . error ( ` ${ error } ` ) } }
Given a layout component and content return a combined React element that is ready for
 mounting.
Given a layout component and content return a combined React element that is ready for mounting .