
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
react-context-menu
Advanced tools
A lightweight right-click context menu implemented in React.

To use:
Install the component in your project:
npm install react-context-menu --save
or, if using yarn:
yarn add --dev react-context-menu
Import the component into your project:
import ContextMenu from 'react-context-menu';
Pass a contextId, and an array of menu items with labels, onClick
functions, and optional icon paths -- like so:
<ContextMenu
contextId={'clickable-area'}
items={[
{
label: 'Configure',
onClick: this.configHandler,
icon: 'path/to/icon.svg'
},
{
label: 'Delete',
onClick: this.deleteHandler
}
]} />
The contextId is the area in which you'd like right-click functionality.
Add a unique id to your right-clickable element, and react-context-menu will
be available anywhere within that element.
Pass closeOnClick (boolean defaulted to false) to ContextMenu to close
the menu upon item click.
Pass closeOnClickOut (boolean defaulted to false) to ContextMenu to close
the menu upon clicking outside of the menu (versus the default, which will close
the menu when the mouse moves outside of the menu boundary).
FAQs
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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.