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

Get Started with UI5 Web Components for React

Start building a React web application leveraging UI5 Web Components for React.

Overview

🎓 beginner 15 min. HTML5BeginnerSAP Fiori

You will learn

  • โœ”How to create a new React application
  • โœ”How to connect the application with UI5 Web Components for React
Lukas Harbarth L Lukas Harbarth May 18, 2026
Created by December 5, 2019
Contributors

Prerequisites

Prerequisites

Steps

Intro

React is a great front-end development tool for building single-page applications (SPA). UI5 Web Components for React provides a SAP Fiori-compliant React implementation by leveraging the UI5 web components.

SAP Fiori provides a consistent and holistic user experience for SAP software. By creating visually pleasing designs with a strong focus on ease of use, the experience is intuitive and simple, across all devices.

This first tutorial will start by creating a React application that is able to consume UI5 Web Components for React.


Step 1 Bootstrap the app with the Vite template
โ€”

UI5 Web Components for React provides various templates for starting your project. In this tutorial, we’ll use the Vite template.

Navigate to a folder where you want to create your Web App and open a terminal there. Then use the following command:

Shell
npx degit UI5/webcomponents-react/templates/vite-ts#main my-app
cd my-app
npm i

These commands sets up a Vite project, creating a React Application with TypeScript and incorporating all essential dependencies for UI5 Web Components for React.

Why TypeScript?

TypeScript, a superset of JavaScript and brings a lot of advantages for developers:

  • Easy Debugging: Helps catch errors early.
  • Code Guidance: Provides hints for better coding.
  • Tool Support: Offers autocompletion and navigation in editors.
  • Readability: Enhances code clarity with static typing.
  • Gradual Adoption: Can be added to existing JavaScript projects.
Step 2 Create your new root component
+
Step 3 Embed your new component
+
Step 4 Launch the app to start developing
+

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. Bootstrap the app with the Vite template 2. Create your new root component 3. Embed your new component 4. Launch the app to start developing

Learn more →