Skip to content

Commit 834bb80

Browse files
authored
Merge pull request #2351 from rickhanlonii/rh/react-19
Add React 19, drop experimental
2 parents 483970e + 6602d58 commit 834bb80

18 files changed

+27
-36
lines changed

.github/workflows/deploy.yml

+1-6
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,13 @@
11
name: Build and Deploy
22
on:
33
push:
4-
branches: [ main ]
4+
branches: [main]
55
permissions:
66
contents: write
77
jobs:
88
deploy:
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: google/wireit@setup-github-actions-caching/v1
12-
- name: Checkout
13-
uses: actions/[email protected]
14-
1511
- name: Install
1612
run: |
1713
npm ci
@@ -26,4 +22,3 @@ jobs:
2622
branch: gh-pages # The branch the action should deploy to.
2723
folder: out # The folder the action should deploy.
2824
clean-exclude: "preview/"
29-

.github/workflows/test.yml

+1-3
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,15 @@ permissions:
88

99
jobs:
1010
build:
11-
1211
runs-on: ubuntu-latest
1312
timeout-minutes: 15
1413

1514
steps:
16-
- uses: google/wireit@setup-github-actions-caching/v1
1715
- uses: actions/checkout@v4
1816
- name: Use Node.js 20
1917
uses: actions/setup-node@v4
2018
with:
21-
node-version: '20'
19+
node-version: "20"
2220
- name: Install dependencies
2321
run: npm ci
2422
- run: npm test

README.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ npm start
2424
```
2525

2626
## Current List of [Libraries/Frameworks](https://github.com/webcomponents/custom-elements-everywhere/tree/master/libraries)
27+
2728
- [Angular](https://github.com/webcomponents/custom-elements-everywhere/tree/master/libraries/angular)
2829
- [AngularJs](https://github.com/webcomponents/custom-elements-everywhere/tree/master/libraries/angularjs)
2930
- [Dio](https://github.com/webcomponents/custom-elements-everywhere/tree/master/libraries/dio)
@@ -38,7 +39,7 @@ npm start
3839
- [Polymer](https://github.com/webcomponents/custom-elements-everywhere/tree/master/libraries/polymer)
3940
- [Preact](https://github.com/webcomponents/custom-elements-everywhere/tree/master/libraries/preact)
4041
- [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)
42+
- [React Beta](https://github.com/webcomponents/custom-elements-everywhere/tree/master/libraries/react-beta)
4243
- [Riot.js](https://github.com/webcomponents/custom-elements-everywhere/tree/master/libraries/riot)
4344
- [Skate](https://github.com/webcomponents/custom-elements-everywhere/tree/master/libraries/skate)
4445
- [Solid](https://github.com/webcomponents/custom-elements-everywhere/tree/master/libraries/solid)
@@ -82,6 +83,7 @@ your library's npm package name. This is used during the build process to
8283
grab the library's semver and publish it on the site.
8384

8485
Example:
86+
8587
```
8688
"scripts": {
8789
"test": "cross-env LIBRARY_NAME=@angular/core karma start",
@@ -167,7 +169,7 @@ Licensed under the [Apache License, Version 2.0](LICENSE) (the "License");
167169
you may not use this file except in compliance with the License. You may
168170
obtain a copy of the License at
169171

170-
http://www.apache.org/licenses/LICENSE-2.0
172+
http://www.apache.org/licenses/LICENSE-2.0
171173

172174
Unless required by applicable law or agreed to in writing, software
173175
distributed under the License is distributed on an "AS IS" BASIS,

docs/index.js

+1-1
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-beta': "React Beta",
3838
riot: "Riot.js",
3939
skate: "Skate w/ Preact",
4040
solid: "Solid",
File renamed without changes.
File renamed without changes.

libraries/react-beta/meta/issues.json

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[
2+
3+
]

libraries/react-beta/meta/summary.md

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<h4 id="react-1beta-overview">React Beta</h4>
2+
3+
The React 19 Beta features full support for Custom Elements.
4+
5+
<h4 id="react-beta-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-beta-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 libraries/react-beta/package-lock.json

+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

libraries/react-experimental/package.json libraries/react-beta/package.json

+2-2
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": {

libraries/react-experimental/meta/issues.json

-7
This file was deleted.

libraries/react-experimental/meta/summary.md

-11
This file was deleted.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
"./libraries/polymer:build",
4545
"./libraries/preact:build",
4646
"./libraries/react:build",
47-
"./libraries/react-experimental:build",
47+
"./libraries/react-beta:build",
4848
"./libraries/riot:build",
4949
"./libraries/skate:build",
5050
"./libraries/solid:build",

0 commit comments

Comments
 (0)