|
1 | 1 | # react-intersection-observer |
2 | 2 |
|
3 | | -[![Version Badge][npm-version-svg]][package-url] |
4 | | -[![Test][test-image]][test-url] |
5 | | -[![License][license-image]][license-url] |
6 | | -[![Downloads][downloads-image]][downloads-url] |
| 3 | +[](https://npmjs.org/package/react-intersection-observer) |
| 4 | +[](https://github.com/thebuilder/react-intersection-observer/actions?query=workflow%3ATest) |
| 5 | +[](LICENSE) |
| 6 | +[](http://npm-stat.com/charts.html?package=react-intersection-observer) |
7 | 7 |  |
8 | 8 |
|
9 | 9 | A React implementation of the [Intersection Observer API](https://developer.mozilla.org/en-US/docs/Web/API/Intersection_Observer_API) |
@@ -259,9 +259,9 @@ extend the `IntersectionObserverEntry` with the `isVisible` boolean. |
259 | 259 | The `IntersectionObserver` itself is just a simple but powerful tool. Here's a |
260 | 260 | few ideas for how you can use it. |
261 | 261 |
|
262 | | -- [Lazy image load](docs/Recipes.md#lazy-image-load) |
263 | | -- [Trigger animations](docs/Recipes.md#trigger-animations) |
264 | | -- [Track impressions](docs/Recipes.md#track-impressions) _(Google Analytics, Tag |
| 262 | +- [Lazy image load](apps/docs/docs/guides/recipes.mdx#lazy-image-loading) |
| 263 | +- [Trigger animations](apps/docs/docs/guides/recipes.mdx#scroll-triggered-animation) |
| 264 | +- [Track impressions](apps/docs/docs/guides/recipes.mdx#track-an-impression) _(Google Analytics, Tag |
265 | 265 | Manager, etc.)_ |
266 | 266 |
|
267 | 267 | ## FAQ |
@@ -375,7 +375,7 @@ globally, alongside either `jest.fn` or `vi.fn`. |
375 | 375 |
|
376 | 376 | See the instructions for [Vitest](#vitest). You should be able to use a similar |
377 | 377 | setup/reset code, adapted to the testing library you are using. Failing that, |
378 | | -copy the code from [test-utils.ts][test-utils-url], and make your own version. |
| 378 | +copy the code from [test-utils.ts](packages/react-intersection-observer/src/test-utils.ts), and make your own version. |
379 | 379 |
|
380 | 380 | ### Fallback Behavior |
381 | 381 |
|
@@ -574,13 +574,3 @@ order to destroy the observer again. |
574 | 574 | > You most likely won't need this, but it can be useful if you |
575 | 575 | > need to handle IntersectionObservers outside React, or need full control over |
576 | 576 | > how instances are created. |
577 | | -
|
578 | | -[package-url]: https://npmjs.org/package/react-intersection-observer |
579 | | -[npm-version-svg]: https://img.shields.io/npm/v/react-intersection-observer.svg |
580 | | -[license-image]: http://img.shields.io/npm/l/react-intersection-observer.svg |
581 | | -[license-url]: LICENSE |
582 | | -[downloads-image]: http://img.shields.io/npm/dm/react-intersection-observer.svg |
583 | | -[downloads-url]: http://npm-stat.com/charts.html?package=react-intersection-observer |
584 | | -[test-image]: https://github.com/thebuilder/react-intersection-observer/workflows/Test/badge.svg |
585 | | -[test-url]: https://github.com/thebuilder/react-intersection-observer/actions?query=workflow%3ATest |
586 | | -[test-utils-url]: https://github.com/thebuilder/react-intersection-observer/blob/master/src/test-utils.ts |
0 commit comments