SAP Home Learn Build Integrate Model Operate Extend with AI ConnectTutorial navigator Knowledge Graph API Devtoberfest Developer Advocates App Space

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 30, 2025
Created by December 10, 2024
Contributors

Prerequisites

Steps

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@latest/luigi-client.js"></script>
  2. In the same file, change the UI5 option from data-sap-ui-frameOptions="trusted" to data-sap-ui-frameOptions="allow". Directly below, add data-sap-ui-preload="":

    HTML
    <script
        id="sap-ui-bootstrap"
        src="https://openui5.hana.ondemand.com/resources/sap-ui-core.js"
        data-sap-ui-theme="sap_fiori_3"
        data-sap-ui-resourceroots='{
                "luigi.ui5": "./"
            }'
        data-sap-ui-oninit="module:sap/ui/core/ComponentSupport"
        data-sap-ui-compatVersion="edge"
        data-sap-ui-async="true"
    
        <!-- Change these 2 attributes -->
        data-sap-ui-frameOptions="allow"
        data-sap-ui-preload=""
        <!-- To the shown values -->
    
    ></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 3
1. Add Luigi to UI5 micro-frontend 2. Create "Order History" view 3. Run UI5 app

Learn more →