# souporserious/react-measure

📏 Compute measurements of a React component.

Repository: https://github.com/souporserious/react-measure
Canonical: https://ross.abutalabs.com/products/react-measure
Homepage: https://souporserious.github.io/react-measure/
Language: JavaScript
License: MIT
License Family: permissive
Last push: 2020-09-11T02:19:27+00:00

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

## Adoption (not part of the score)
Stars 1941, forks 89 (observed 2026-08-28T04:05:57.439624+00:00)

## What it is
A React library that computes measurements (client, offset, scroll, bounds, margin rects) of wrapped components using ResizeObserver. It exposes a Measure component and hook-style render props to react to element size changes.

## Use cases
- measure a react component's width and height
- detect when an element resizes in react
- get bounding rect of a dom element in react
- build container-query-like responsive components
- animate elements based on their measured size

## When to choose
- you need element dimensions or resize callbacks in a React app
- you want a small utility wrapping ResizeObserver with a polyfill

## When to avoid
- you're not using React
- you need actively maintained tooling - last release was 2020
- modern CSS container queries can solve your layout need without JS

## Facets
- artifact type: library
- maturity: maintenance
- function: ui-components, developer-tools
- domain: frontend, web-development
- platform: browser
- tags: react, resize-observer, element-measurement, container-queries, dimensions, nodejs, javascript

## Member repositories
- souporserious/react-measure (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:57.439624+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-30T03:08:07.496620+00:00, confidence not recorded.
  - readme: https://github.com/souporserious/react-measure (fetched 2026-08-28T04:05:57.439624+00:00, sha f085e3a677f9)
  - homepage: https://souporserious.github.io/react-measure/ (fetched 2026-08-29T10:47:37.714764+00:00, sha aaf3457ac1a8)
  - registry_npm: https://registry.npmjs.org/react-measure (fetched 2026-08-29T10:47:37.726629+00:00, sha 4509664e4d4d)
- Data as of 2026-08-30T08:39:29.467469+00:00.
