yocontra/react-responsive
CSS media queries in react - for responsive design, and more. observed · 2026-08-28
Health v2 · maintenance only
36/100
- Activity 9
- Release rhythm 35
- Longevity 100
Flags: no_releases
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: n/a
- age_days: 4402
- days_rel: n/a
- days_push: 550
- n_releases_24m: 0
Adoption not part of the score
7171 stars · 293 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
A React library that lets components respond to CSS media queries via a useMediaQuery hook and a MediaQuery component. It supports camelCase shorthand props, render props, and device forcing for testing responsive layouts.
Use cases
- render different components for desktop vs mobile in react
- detect screen orientation or retina displays in a react app
- use css media queries as react hooks
- conditionally render ui based on viewport width
- test responsive layouts with a forced device
- build mobile-first responsive react components
When to choose
- you need JS-driven conditional rendering based on media queries in React
- you want both hook and component APIs with broad browser support
- you need to force a device context for testing or SSR scenarios
When to avoid
- you only need CSS-only responsive styling without JS logic
- you are not using React
- you prefer a full CSS-in-JS or utility framework that handles breakpoints for you
Facets
library · maturity stable
frontend-framework ui-components state-management web-development frontend browser react media-queries responsive-design hooks matchmedia css viewport mobile-first typescript nodejs web-server
3 sources
- readme: https://github.com/yocontra/react-responsive · fetched 2026-08-28 · 1ca9cd80bc26
- homepage: https://contra.io/react-responsive · fetched 2026-08-29 · 0c8554036c67
- registry_npm: https://registry.npmjs.org/react-responsive · fetched 2026-08-29 · d044b05c8216
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| yocontra/react-responsive | main | 36 |
For agents
markdown · JSON · MCP: product_card(name="yocontra/react-responsive")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem