Skip to content

Commit 4fbe165

Browse files
authored
✨ NEW: react 18 support (#13)
* ✨ NEW: react 18 support * 📚 DOC: installation guide for react 17
1 parent 5da9bfb commit 4fbe165

File tree

5 files changed

+381
-392
lines changed

5 files changed

+381
-392
lines changed

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,6 @@ node_modules
1313

1414
.env
1515

16-
*.tgz
16+
*.tgz
17+
18+
demo-app-2

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ Make sure you ⭐️ this [`repository`](https://github.com/pettiboy/react-ui-sc
1919

2020
## ✨ Installation
2121

22+
### React 18
23+
2224
```bash
2325
npm install --save react-ui-scrollspy
2426
```
@@ -29,6 +31,18 @@ OR
2931
yarn add react-ui-scrollspy
3032
```
3133

34+
### React 17 and below
35+
36+
```bash
37+
npm install --save react-ui-scrollspy@2.2.0
38+
```
39+
40+
OR
41+
42+
```bash
43+
yarn add react-ui-scrollspy@2.2.0
44+
```
45+
3246
## 🎞 Demo
3347

3448
### Try it your self [here](https://pettiboy.github.io/react-ui-scrollspy)!

dev.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ creates a `.tgz`
1414
```bash
1515
npm run build
1616
npm pack
17-
mv react-ui-scrollspy-2.2.0.tgz ./demo-app
17+
mv react-ui-scrollspy-2.3.0.tgz ./demo-app
1818
cd demo-app
1919
npm uninstall react-ui-scrollspy
20-
npm install react-ui-scrollspy-2.2.0.tgz --production
20+
npm install react-ui-scrollspy-2.3.0.tgz --production
2121
cd ..
2222
```
2323

0 commit comments

Comments
 (0)