Package Exports
- react-context-menu
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (react-context-menu) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
react-context-menu
A lightweight right-click context menu implemented in React.

To use:
Install the component in your project:
npm install react-context-menu --save
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.