Skip to content

Commit bb3f25d

Browse files
committed
[React] Add support for React 19
1 parent c9a3e66 commit bb3f25d

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

src/React/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# CHANGELOG
22

3+
## 2.33
4+
5+
- Add support for React 19
6+
37
## 2.30
48

59
- Ensure compatibility with PHP 8.5

src/React/assets/package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,23 +35,23 @@
3535
},
3636
"importmap": {
3737
"@hotwired/stimulus": "^3.0.0",
38-
"react": "^18.0",
39-
"react-dom/client": "^18.0",
38+
"react": "^18.0 || ^19.0",
39+
"react-dom/client": "^18.0 || ^19.0",
4040
"@symfony/ux-react": "path:%PACKAGE%/dist/loader.js"
4141
}
4242
},
4343
"peerDependencies": {
4444
"@hotwired/stimulus": "^3.0.0",
45-
"react": "^18.0",
46-
"react-dom": "^18.0"
45+
"react": "^18.0 || ^19.0",
46+
"react-dom": "^18.0 || ^19.0"
4747
},
4848
"devDependencies": {
4949
"@hotwired/stimulus": "^3.0.0",
5050
"@testing-library/dom": "^10.4.0",
5151
"@testing-library/jest-dom": "^6.6.3",
5252
"@testing-library/user-event": "^14.6.1",
53-
"@types/react": "^18.0",
54-
"@types/react-dom": "^18.0",
53+
"@types/react": "^18.0 || ^19.0",
54+
"@types/react-dom": "^18.0 || ^19.0",
5555
"@types/webpack-env": "^1.16",
5656
"@vitejs/plugin-react": "^4.1.0",
5757
"jsdom": "^26.1.0",

0 commit comments

Comments
 (0)