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

Pomax/react-onclickoutside

An onClickOutside wrapper for React components observed · 2026-08-28

github.com/Pomax/react-onclickoutside · JavaScript · MIT (permissive) observed · 2026-08-28

Health v2 · maintenance only

30/100

  • Activity 15
  • Release rhythm 8
  • 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: n/a
  • age_days: 4257
  • days_rel: n/a
  • days_push: 512
  • n_releases_24m: 0

Full methodology

Adoption not part of the score

1815 stars · 185 forks observed · 2026-08-28

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

A React Higher Order Component (HOC) that lets components listen for clicks occurring outside of their own DOM element. It is commonly used to close menus, dropdowns, and popovers when the user clicks elsewhere on the page.

Use cases

  • close a dropdown menu when clicking outside of it
  • dismiss a popover or tooltip on outside click
  • hide a modal or menu when the user clicks elsewhere on the page
  • detect outside clicks for a React component
  • wrap a React component with an onClickOutside handler
  • handle outside touch or mousedown events in React

When to choose

  • you need a small, focused, battle-tested utility for outside-click detection in React
  • you want a HOC that works with both class and stateless functional components
  • you need fine-grained control over which events are listened to and which elements are skipped

When to avoid

  • you are not using React
  • you prefer modern hook-based solutions like useClickOutside implemented inline
  • you need a full UI component library with dropdowns and menus already handling this behavior

Facets

library · maturity maintenance

ui-components middleware frontend web-development browser react hoc onclickoutside event-handling dom nodejs

2 sources

Member repositories

RepositoryRoleHealth v2
Pomax/react-onclickoutsidemain30

For agents

markdown · JSON · MCP: product_card(name="Pomax/react-onclickoutside")

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