Commit df09c96
authored
Link to react-intersection-observer
Thanks for the hook example! It was the original inspiration for upgrading [https://github.com/thebuilder/react-intersection-observer](https://github.com/thebuilder/react-intersection-observer) to support hooks. 🙌
The example is a really nice starting point, but also limited if you were to use it in production. `react-intersection-observer` supports all configuration options for IntersectionObserver, and the hook correctly handles creating new observers if props/ref changes.
I think it would be a nice addition to provide a link for users looking to use an IntersectionObserver.1 parent 8a7ac6b commit df09c96
1 file changed
+4
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
7 | 11 | | |
8 | 12 | | |
9 | 13 | | |
| |||
0 commit comments