Skip to content

Commit 2e368fd

Browse files
committed
Add React 19, drop experimental
1 parent 483970e commit 2e368fd

File tree

16 files changed

+22
-26
lines changed

16 files changed

+22
-26
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ npm start
3838
- [Polymer](https://github.com/webcomponents/custom-elements-everywhere/tree/master/libraries/polymer)
3939
- [Preact](https://github.com/webcomponents/custom-elements-everywhere/tree/master/libraries/preact)
4040
- [React](https://github.com/webcomponents/custom-elements-everywhere/tree/master/libraries/react)
41-
- [React@experimental](https://github.com/webcomponents/custom-elements-everywhere/tree/master/libraries/react-experimental)
41+
- [React 19](https://github.com/webcomponents/custom-elements-everywhere/tree/master/libraries/react-19)
4242
- [Riot.js](https://github.com/webcomponents/custom-elements-everywhere/tree/master/libraries/riot)
4343
- [Skate](https://github.com/webcomponents/custom-elements-everywhere/tree/master/libraries/skate)
4444
- [Solid](https://github.com/webcomponents/custom-elements-everywhere/tree/master/libraries/solid)

docs/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ const libraryMap = {
3434
polymer: "Polymer",
3535
preact: "Preact",
3636
react: "React",
37-
'react-experimental': "React",
37+
'react-19': "React",
3838
riot: "Riot.js",
3939
skate: "Skate w/ Preact",
4040
solid: "Solid",
File renamed without changes.
File renamed without changes.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[
2+
3+
]

libraries/react-19/meta/summary.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<h4 id="react-19-overview">React 19</h4>
2+
3+
React 19 features full support for Custom Elements.
4+
5+
<h4 id="react-19-handling-data">Handling data</h4>
6+
7+
React@beta, as of April 2024, uses a runtime heuristic to determine if it should pass data to Custom Elements as either properties or attributes. If a property is already defined on the element instance, it will use properties, otherwise it will fallback to attributes.
8+
9+
<h4 id="react-19-handling-events">Handling events</h4>
10+
11+
React@beta, as of April 2024, will register an event listener on any custom element when binding a function to a property whose name begins with <code>on</code>. It supports lowercase, camelCase, kebab-case, CAPScase, and PascalCase events.

libraries/react-experimental/package-lock.json renamed to libraries/react-19/package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
"webpack": "5.89.0"
2020
},
2121
"dependencies": {
22-
"react": "^0.0.0-experimental-3ddbedd05-20220719",
23-
"react-dom": "^0.0.0-experimental-3ddbedd05-20220719"
22+
"react": "beta",
23+
"react-dom": "beta"
2424
},
2525
"wireit": {
2626
"test": {
File renamed without changes.

0 commit comments

Comments
 (0)