Skip to content

Commit 7c0f14a

Browse files
committed
[React] Upgrade importmap entries for react-dom/client
1 parent a3d764e commit 7c0f14a

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

src/React/CHANGELOG.md

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

3+
## 2.28.0
4+
5+
- [BC BREAK] If you are using the Symfony AssetMapper but **not** Symfony Flex,
6+
you need to upgrade your `importmap.php` and change the asset `react-dom` to `react-dom/client`,
7+
and run `php bin/console importmap:install`.
8+
9+
Symfony Flex or Webpack Encore users are not affected.
10+
311
## 2.26.0
412

513
- Improve error handling when resolving a React component

src/React/assets/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"importmap": {
3434
"@hotwired/stimulus": "^3.0.0",
3535
"react": "^18.0",
36-
"react-dom": "^18.0",
36+
"react-dom/client": "^18.0",
3737
"@symfony/ux-react": "path:%PACKAGE%/dist/loader.js"
3838
}
3939
},

0 commit comments

Comments
 (0)