
Research
SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains
An emerging npm supply chain attack that infects repos, steals CI secrets, and targets developer AI toolchains for further compromise.
outsideclick-react
Advanced tools
A React component and a hook to detect outside click.
npm i outsideclick-react
import React from "react";
import { useOutsideClick } from "outsideclick-react";
function Example() {
const ref = useOutsideClick(handleOutsideClick)
const handleOutsideClick = (e){
console.log(e)
}
return(
<div ref={ref}>
<h1>Detect Outside Click</h1>
</div>
)
}
export default Example
import React from "react";
import { OutsideClick } from "outsideclick-react";
function Example() {
const handleOutsideClick = (e){
console.log(e)
}
return(
<OutsideClick onOutsideClcik={handleOutsideClick}>
<h1>Detect Outside Click</h1>
</OutsideClick>
)
}
export default Example
NB: OutsideClick react component return a div, It supports all div element property
FAQs
A React utility hook for detecting outside clicks
The npm package outsideclick-react receives a total of 176 weekly downloads. As such, outsideclick-react popularity was classified as not popular.
We found that outsideclick-react demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
An emerging npm supply chain attack that infects repos, steals CI secrets, and targets developer AI toolchains for further compromise.

Company News
Socket is proud to join the OpenJS Foundation as a Silver Member, deepening our commitment to the long-term health and security of the JavaScript ecosystem.

Security News
npm now links to Socket's security analysis on every package page. Here's what you'll find when you click through.