# civiccc/react-waypoint

A React component to execute a function whenever you scroll to an element.

Repository: https://github.com/civiccc/react-waypoint
Canonical: https://ross.abutalabs.com/products/react-waypoint
Language: JavaScript
License: MIT
License Family: permissive
Last push: 2022-06-08T15:28:16+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 4237, "days_push": 1547, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 4041, forks 205 (observed 2026-08-28T04:08:33.524851+00:00)

## What it is
A React component that fires callbacks when an element enters or leaves the viewport during scrolling. It supports lazy loading, infinite scroll, scrollspies, and docking elements, working in any scrollable container.

## Use cases
- lazy load images or content as the user scrolls
- implement infinite scroll pagination in React
- build a scrollspy navigation that highlights sections
- dock or stick elements to the viewport on scroll
- trigger animations when a section becomes visible

## When to choose
- you use React and need scroll-position-based callbacks
- you want a small, focused library for viewport enter/leave events
- you need infinite scroll or lazy loading without a full intersection observer abstraction

## When to avoid
- you are not using React
- you need advanced scroll animation or parallax features
- you prefer the native IntersectionObserver API directly

## Facets
- artifact type: library
- maturity: maintenance
- function: ui-components, frontend-framework
- domain: frontend, web-development
- platform: browser, cross-platform
- tags: react, scroll-events, infinite-scroll, lazy-loading, viewport-detection, scrollspy, nodejs

## Member repositories
- civiccc/react-waypoint (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:33.524851+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:23:45.614000+00:00, confidence not recorded.
  - readme: https://github.com/civiccc/react-waypoint (fetched 2026-08-28T04:08:33.524851+00:00, sha b2aadece2213)
  - registry_npm: https://registry.npmjs.org/react-waypoint (fetched 2026-08-29T09:16:27.394175+00:00, sha 395fc1a09c3a)
- Data as of 2026-08-30T08:39:29.467469+00:00.
