Skip to content

Commit bb1c4e1

Browse files
committed
Removes peer dependencies and updates docs
1 parent 9e5e77c commit bb1c4e1

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,15 @@ Check out a working demo here: https://4mkpc.csb.app/
7777

7878
## Installation
7979

80-
```javascript
80+
Firstly, ensure you have the required peer dependencies:
81+
82+
```bash
83+
npm install react react-dom
84+
```
85+
86+
> **Note:** We require >=react@0.14.0 and >=react-dom@0.14.0
87+
88+
```bash
8189
npm install react-sizeme
8290
```
8391

package.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,6 @@
3535
"shallowequal": "^1.1.0",
3636
"throttle-debounce": "^3.0.1"
3737
},
38-
"peerDependencies": {
39-
"react": "^0.14.0 || ^15.0.0-0 || ^16.0.0 || ^17.0.0 || ^18.0.0",
40-
"react-dom": "^0.14.0 || ^15.0.0-0 || ^16.0.0 || ^17.0.0 || ^18.0.0"
41-
},
4238
"devDependencies": {
4339
"@babel/cli": "^7.14.8",
4440
"@babel/core": "^7.15.0",

0 commit comments

Comments
 (0)