Skip to content

Commit 55474b4

Browse files
authored
Upgrade to React v19 (#1195)
* migrate workspaces packages (except docs) to use React 19 by default * restore subnav * add more null checks for refs * exclude one more flakey test * fix race condition in axe tests * disable parallel axe runs
1 parent 8faccaa commit 55474b4

File tree

83 files changed

+19539
-12357
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

83 files changed

+19539
-12357
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
'@primer/react-brand': minor
3+
---
4+
5+
Improved support for React v19.
6+
7+
All components now have improved support for React v19 type signatures, in addition to continued backwards compatibility with React v18.
8+
9+
As part of this change, the following has changed:
10+
11+
- Refs as props are now handled correctly in `FAQGroup`, `ActionMenu`, `Bento`, `Button`/`ButtonGroup`, and other compound components.
12+
- Removed internal type casting on various components. This ensures that props are inferred correctly using the new JSX runtime in React v19.
13+
- Removed internal dependency on `react-is` for `Fragment` detection
14+
15+
No changes to component behavior or presentation is expected as part of this change.

0 commit comments

Comments
 (0)