Skip to content

Commit

Permalink
Fix peer React version (#1017)
Browse files Browse the repository at this point in the history
* Fix peer React version

* Update docs
  • Loading branch information
carloskelly13 committed May 8, 2023
1 parent 9b075e0 commit a188ea3
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/brave-melons-rhyme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'nuka-carousel': patch
---

Fix peer dependency version for React in package.
6 changes: 6 additions & 0 deletions docs/installation.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,12 @@ pnpm add nuka-carousel
</TabItem>
</Tabs>

:::info

Nuka Carousel has a peer dependency on React 18.

:::

### Basic Usage

```jsx
Expand Down
4 changes: 2 additions & 2 deletions packages/nuka/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@
"webpack-dev-server": "^4.6.0"
},
"peerDependencies": {
"react": "^16.0.0 || ^17.0.1 || ^18.0.0",
"react-dom": "^16.0.0 || ^17.0.1 || ^18.0.0"
"react": ">=18.0.0",
"react-dom": ">=18.0.0"
},
"resolutions": {
"jsdom": "^14.0.0"
Expand Down

0 comments on commit a188ea3

Please sign in to comment.