Skip to content

Commit e56dd07

Browse files
Improve react peer deps (#622)
* ensure react-dom is also a peer dependency Co-authored-by: =?UTF-8?q?S=C3=A9bastien=20Vanvelthem?= <[email protected]> * prepare peer dependencies for React 18 * update changelog Co-authored-by: =?UTF-8?q?S=C3=A9bastien=20Vanvelthem?= <[email protected]>
1 parent 736f463 commit e56dd07

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2222
- Improve types for `Listbox` component ([#576](https://github.com/tailwindlabs/headlessui/pull/576))
2323
- Remove explicit `:class` prop ([#608](https://github.com/tailwindlabs/headlessui/pull/608))
2424
- Improve tree shaking ([#602](https://github.com/tailwindlabs/headlessui/pull/602))
25+
- Improve peer dependencies for `react-dom`, and for the future version `18` ([#622](https://github.com/tailwindlabs/headlessui/pull/622))
2526

2627
## [Unreleased - Vue]
2728

packages/@headlessui-react/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@
3131
"lint": "../../scripts/lint.sh"
3232
},
3333
"peerDependencies": {
34-
"react": "^16 || ^17"
34+
"react": "^16 || ^17 || ^18",
35+
"react-dom": "^16 || ^17 || ^18"
3536
},
3637
"devDependencies": {
3738
"@types/react": "^16.14.2",

0 commit comments

Comments
 (0)