MCPcopy Index your code
hub / github.com/Andarist/use-onclickoutside

github.com/Andarist/use-onclickoutside @v0.4.1

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.4.1 ↗ · + Follow
3 symbols 7 edges 2 files 0 documented · 0% updated 2y ago★ 4969 open issues
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

use-onclickoutside

React hook for listening for clicks outside of an element.

Usage

import * as React from 'react'
import useOnClickOutside from 'use-onclickoutside'

export default function Modal({ close }) {
  const ref = React.useRef(null)
  useOnClickOutside(ref, close)

  return 

{'Modal content'}


}

Core symbols most depended-on inside this repo

getAddOptions
called by 1
src/index.ts
useOnClickOutside
called by 0
src/index.ts
listener
called by 0
src/index.ts

Shape

Function 3

Languages

TypeScript100%

Modules by API surface

src/index.ts3 symbols

For agents

$ claude mcp add use-onclickoutside \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact