SAP

Manage my Account SAP Devs YouTube ↗ Learnings ↗ Community ↗ Provide Feedback ↗
Logout
⤢ Open full site

Build Luigi Micro-Frontend with UI5

Create a micro-frontend with UI5 and connect it to the core React app using Luigi client.

Overview

🎓 beginner ⏱ 10 min. User InterfaceBeginnerJavascript

You will learn

  • ✔How to create a Luigi view with UI5
  • ✔How to import Luigi Client to your view
Johannes Doberer J Johannes Doberer November 17, 2026
Created on December 10, 2024
Contributors

More from Johannes Doberer

See all 7 tutorials by Johannes Doberer →

Prerequisites

Steps

Intro

In this tutorial, you will create a UI5 micro-frontend for an “Order History” view and connect it to the Luigi Core React application using the Luigi Client.

Step 1 Add Luigi to UI5 micro-frontend
—

In this step, you will import Luigi Client to the UI5 micro-frontend so you can use linkManager and other API function in the next steps.

  1. Open ui5-mf/webapp/index.html and add this line in the head section of the file:

    HTML
    <!--Inside the head tag -->
    <script src="https://unpkg.com/@luigi-project/client@2.33.0/luigi-client.js"></script>
  2. In the same file, change the bootstrap option from data-sap-ui-frame-options="trusted" to data-sap-ui-frame-options="allow". Directly below, add data-sap-ui-preload="". Note that the UI5 generator uses local resources (src="resources/sap-ui-core.js") and hyphenated bootstrap attributes, so your generated file should look like this afterwards:

    HTML
    <script
        id="sap-ui-bootstrap"
        src="resources/sap-ui-core.js"
        data-sap-ui-resource-roots='{
                "luigi.ui5": "./"
            }'
        data-sap-ui-on-init="module:sap/ui/core/ComponentSupport"
        data-sap-ui-compat-version="edge"
    
        data-sap-ui-frame-options="allow"
        data-sap-ui-preload=""
    
        data-sap-ui-async="true"
    ></script>
Step 2 Create &quot;Order History&quot; view
+
Step 3 Run UI5 app
+

Resources

Discussion

Share feedback on this tutorial or join the conversation in SAP Community.

Submit detailed feedback Discuss in Community
Steps
Step 1 of 4
1. Add Luigi to UI5 micro-frontend 2. Create "Order History" view 3. Run UI5 app 4. Tutorial navigation