
Company News
Socket Named Top Sales Organization by RepVue
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.
react-class-contexify
Advanced tools
A React Typescript class component to facilitate the integration of newer versions of react-contexify with my own UI applications
A React Typescript class component to facilitate the integration of newer versions of react-contexify with my existing applications
npm install react-class-contexify
Import code
import CustomContextMenu from "react-class-contexify";
Import styles:
"react-contexify/dist/ReactContexify.min.css";
"react-class-contexify/dist/index.css";
Create an element with properties:
<CustomContextMenu menuID="menuforfeatures" ref={contextMenuRef}/>
Open the menu by using the methods in the class by using the reference
contextMenuRef.show({
x: (event as any).clientX,
y: (event as any).clientY,
event: event,
contextMenu: {
items:[
{
label: "Label 1",
title: "Title 1",
action: ()=>{},
},
{
label: "Label 2",
title: "Title 2",
action: ()=>{},
},
{
label: "With checkbox true",
title: "Title 3",
action: ()=>{},
checkbox: {active: true, value: true, enabled: true}
},
{
label: "With checkbox false",
title: "Title 4",
action: ()=>{},
checkbox: {active: true, value: false, enabled: true}
},
{
label: "A Submenu",
title: "Title 5",
items: [
{
label: "Label 5.1",
title: "Title 6",
action: ()=>{},
},
{
label: "Label 5.2",
title: "Title 7",
action: ()=>{},
}
]
}
]
}
})
Small sample here: https://codesandbox.io/s/react-class-contexify-dvs60n
FAQs
A React Typescript class component to facilitate the integration of newer versions of react-contexify with my own UI applications
We found that react-class-contexify demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.