Ross ROSS = Recommend OSS · open-source software intelligence for agents

maslianok/react-resize-detector

A Cross-Browser, Event-based, Element Resize Detection for React observed · 2026-08-28

github.com/maslianok/react-resize-detector · homepage · TypeScript · MIT (permissive) observed · 2026-08-28

Health v2 · maintenance only

65/100

  • Activity 78
  • Release rhythm 28
  • Longevity 100
How is this computed?

round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.

  • gap_med: 84.5
  • age_days: 3940
  • days_rel: 435
  • days_push: 136
  • n_releases_24m: 3

Full methodology

Adoption not part of the score

1303 stars · 97 forks observed · 2026-08-28

What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded

A tiny (~2kb) TypeScript React library for detecting element size changes using the native ResizeObserver API. It provides a hook and component to react to element resizes without window resize listeners or timeouts.

Use cases

  • detect when a react element is resized
  • get element width and height in react
  • responsive component behavior based on container size
  • run javascript logic on element dimension changes
  • replace window resize listeners with element-level resize detection
  • build responsive charts or layouts that adapt to their container

When to choose

  • you need JavaScript-based resize logic integrated with React state and effects
  • you need complex calculations based on element dimensions
  • CSS container queries are insufficient for your use case
  • you want a tiny, widely-used, TypeScript-first solution

When to avoid

  • pure CSS container queries can solve your responsive styling needs
  • you only need to react to window resizes rather than individual elements
  • you are not using React

Facets

library · maturity stable

ui-components frontend-framework frontend web-development developer-tools browser cross-platform react resize-observer hooks typescript responsive-layout nodejs

3 sources

Member repositories

RepositoryRoleHealth v2
maslianok/react-resize-detectormain65

For agents

markdown · JSON · MCP: product_card(name="maslianok/react-resize-detector")

Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem