You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
UI5 Web Components for React is a Fiori compliant React library built on top of the UI5 Web Components.
21
21
With the help of UI5 Web Components for React, you can use UI5 Web Components as if they were native React components.
22
-
In addition to that, UI5 Web Components for React is providing complex components and layouts on top of the UI5 Web Components.
22
+
In addition to that, UI5 Web Components for React provides complex components and layouts on top of the UI5 Web Components.
23
23
24
24
<TableOfContent />
25
25
26
26
## Requirements
27
27
28
28
-[React](https://www.npmjs.com/package/react) and [React-DOM](https://www.npmjs.com/package/react-dom) (**18.0.0 or higher**)
29
29
-[Node.js](https://nodejs.org/) (**LTS version**)
30
-
- If you're using [TypeScript](https://www.typescriptlang.org/) we recommend version **4.7** or later.
30
+
- If you're using [TypeScript](https://www.typescriptlang.org/), we recommend version **4.7** or later.
31
31
32
32
## End of Support for Version 1.x
33
33
@@ -38,8 +38,8 @@ The support for version 1.x of `ui5-webcomponents-react` has ended on **July 1,
38
38
### Tutorial
39
39
40
40
You are new to UI5 Web Components for React and don't know where to start?<br />
41
-
Then take a look at our [Tutorial Mission](https://developers.sap.com/mission.react-spa.html) at “SAP Developers”!
42
-
There you get a first glimpse at how easy it is to create an Application with UI5 Web Components for React.<br />
41
+
Then take a look at our [Tutorial Mission](https://developers.sap.com/mission.react-spa.html) at "SAP Developers"!
42
+
There you will get a first glimpse at how easy it is to create an Application with UI5 Web Components for React.<br />
43
43
In about an hour you will create a business dashboard from scratch and get familiar with some React basics in case you don't know them already.
44
44
45
45
### Examples & Templates
@@ -177,7 +177,7 @@ Available Themes:
177
177
178
178
### Configure Compact/Cozy setting
179
179
180
-
UI5 Web Components supports `Compact` and `Cozy` mode. It is set to `Cozy` by default. To enable `Compact`, provide the css class `ui5-content-density-compact` to any of your HTML elements and it apply compact size to all of its children.
180
+
UI5 Web Components supports `Compact` and `Cozy` mode. It is set to `Cozy` by default. To enable `Compact`, provide the css class `ui5-content-density-compact` to any of your HTML elements and it will apply compact size to all of its children.
181
181
182
182
```html
183
183
<bodyclass="ui5-content-density-compact">
@@ -189,8 +189,6 @@ UI5 Web Components supports `Compact` and `Cozy` mode. It is set to `Cozy` by de
189
189
190
190
UI5 Web Components for React supports [TypeScript](https://www.typescriptlang.org/), therefore we also provide type interfaces for event parameters, public methods of `ui5-webcomponents`, and more.
191
191
192
-
You can find all available interfaces of the main package [here](https://github.com/UI5/webcomponents-react/tree/main/packages/main/src/interfaces) and for charts [here](https://github.com/UI5/webcomponents-react/tree/main/packages/charts/src/interfaces).
193
-
194
192
#### Example
195
193
196
194
Small app with a popover opened by clicking a button including type declarations:
@@ -232,6 +230,11 @@ export default function App() {
232
230
`@ui5/webcomponents` offers a variety of [feature (side-effect) imports](https://ui5.github.io/webcomponents/docs/advanced/using-features/) that are available with `@ui5/webcomponents-react` as well.
233
231
To use them you have to make sure they are imported before any other imports!
234
232
233
+
### Testing
234
+
235
+
We recommend testing components and running E2E tests in real browsers, e.g. by using Cypress, as JSDom (and other virtual DOM implementations) have limited custom element support.
236
+
You can find out more about testing with Cypress [here](?path=/docs/testing-with-cypress-setup--docs), where you can also learn how to use our custom Cypress commands.
237
+
235
238
### Support
236
239
237
240
Feel free to open issues or ask us directly in the [`#webcomponents-react`](https://openui5.slack.com/archives/CSQEJ2J04) channel in the
0 commit comments