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
Copy file name to clipboardExpand all lines: README.md
+93-4Lines changed: 93 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,10 +30,6 @@ Now we can use `<web-greeting>` like any other HTML element!
30
30
</body>
31
31
```
32
32
33
-
Note that by using React 18, `r2wc` will use the new root API. If your application needs the legacy API, please use React 17
34
-
35
-
In the above case, the web-greeting custom element is not making use of the `name` property from our `Greeting` component.
36
-
37
33
## Working with Attributes
38
34
39
35
By default, custom elements created by `r2wc` only pass properties to the underlying React component. To make attributes work, you must specify your component's props.
@@ -61,6 +57,95 @@ as follows:
61
57
</body>
62
58
```
63
59
60
+
## Working with complex attributes and functions callback
0 commit comments