Skip to content

Commit

Permalink
Merge pull request #2351 from rickhanlonii/rh/react-19
Browse files Browse the repository at this point in the history
Add React 19, drop experimental
  • Loading branch information
rictic authored May 8, 2024
2 parents 483970e + 6602d58 commit 834bb80
Show file tree
Hide file tree
Showing 18 changed files with 27 additions and 36 deletions.
7 changes: 1 addition & 6 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,13 @@
name: Build and Deploy
on:
push:
branches: [ main ]
branches: [main]
permissions:
contents: write
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: google/wireit@setup-github-actions-caching/v1
- name: Checkout
uses: actions/[email protected]

- name: Install
run: |
npm ci
Expand All @@ -26,4 +22,3 @@ jobs:
branch: gh-pages # The branch the action should deploy to.
folder: out # The folder the action should deploy.
clean-exclude: "preview/"

4 changes: 1 addition & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,15 @@ permissions:

jobs:
build:

runs-on: ubuntu-latest
timeout-minutes: 15

steps:
- uses: google/wireit@setup-github-actions-caching/v1
- uses: actions/checkout@v4
- name: Use Node.js 20
uses: actions/setup-node@v4
with:
node-version: '20'
node-version: "20"
- name: Install dependencies
run: npm ci
- run: npm test
Expand Down
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ npm start
```

## Current List of [Libraries/Frameworks](https://github.com/webcomponents/custom-elements-everywhere/tree/master/libraries)

- [Angular](https://github.com/webcomponents/custom-elements-everywhere/tree/master/libraries/angular)
- [AngularJs](https://github.com/webcomponents/custom-elements-everywhere/tree/master/libraries/angularjs)
- [Dio](https://github.com/webcomponents/custom-elements-everywhere/tree/master/libraries/dio)
Expand All @@ -38,7 +39,7 @@ npm start
- [Polymer](https://github.com/webcomponents/custom-elements-everywhere/tree/master/libraries/polymer)
- [Preact](https://github.com/webcomponents/custom-elements-everywhere/tree/master/libraries/preact)
- [React](https://github.com/webcomponents/custom-elements-everywhere/tree/master/libraries/react)
- [React@experimental](https://github.com/webcomponents/custom-elements-everywhere/tree/master/libraries/react-experimental)
- [React Beta](https://github.com/webcomponents/custom-elements-everywhere/tree/master/libraries/react-beta)
- [Riot.js](https://github.com/webcomponents/custom-elements-everywhere/tree/master/libraries/riot)
- [Skate](https://github.com/webcomponents/custom-elements-everywhere/tree/master/libraries/skate)
- [Solid](https://github.com/webcomponents/custom-elements-everywhere/tree/master/libraries/solid)
Expand Down Expand Up @@ -82,6 +83,7 @@ your library's npm package name. This is used during the build process to
grab the library's semver and publish it on the site.

Example:

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

http://www.apache.org/licenses/LICENSE-2.0
http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
Expand Down
2 changes: 1 addition & 1 deletion docs/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const libraryMap = {
polymer: "Polymer",
preact: "Preact",
react: "React",
'react-experimental': "React",
'react-beta': "React Beta",
riot: "Riot.js",
skate: "Skate w/ Preact",
solid: "Solid",
Expand Down
File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions libraries/react-beta/meta/issues.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[

]
11 changes: 11 additions & 0 deletions libraries/react-beta/meta/summary.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<h4 id="react-1beta-overview">React Beta</h4>

The React 19 Beta features full support for Custom Elements.

<h4 id="react-beta-handling-data">Handling data</h4>

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.

<h4 id="react-beta-handling-events">Handling events</h4>

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.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
"webpack": "5.89.0"
},
"dependencies": {
"react": "^0.0.0-experimental-3ddbedd05-20220719",
"react-dom": "^0.0.0-experimental-3ddbedd05-20220719"
"react": "beta",
"react-dom": "beta"
},
"wireit": {
"test": {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
7 changes: 0 additions & 7 deletions libraries/react-experimental/meta/issues.json

This file was deleted.

11 changes: 0 additions & 11 deletions libraries/react-experimental/meta/summary.md

This file was deleted.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"./libraries/polymer:build",
"./libraries/preact:build",
"./libraries/react:build",
"./libraries/react-experimental:build",
"./libraries/react-beta:build",
"./libraries/riot:build",
"./libraries/skate:build",
"./libraries/solid:build",
Expand Down

0 comments on commit 834bb80

Please sign in to comment.