React-electron-contextmenu
Makes it super easy to create context menus in your React powered Electron apps. TypeScript supported!
Installation
npm install react-electron-contextmenu --save
Usage
Import the component:
;
Wrap the component you want to use as the right click area in the <ContextMenuArea>
component and use in render method:
render
React-electron-context menu uses the menu template format from electron, see samples here:
https://electronjs.org/docs/api/menu#examples