如何在SAP Fiori应用里使用React component
在MyApp.jsx里引入UI5针对React框架的开发的Card web Component:
代码如下:
import React from 'react'
import { Card } from "@ui5/webcomponents-react";
export function MyApp() {
return (
<div>
<Card heading="Card"></Card>
</div>
);
}
然后和正常的React应用一样,在App.js里引入我们自定义的Component:
代码如下:
import React from "react";
import { MyApp } from "./MyApp";
import { T