Last active
December 30, 2016 19:39
-
-
Save charud/3d5062f911da467b525d6040200334bd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import { MENU_ID } from './constants';; | |
import { ContextMenuTrigger } from 'react-contextmenu' | |
const SomeComponent = (props) => { | |
return ( | |
<div> | |
<ContextMenuTrigger id={MENU_ID} collect={props => props} name="Foo"> | |
<div>...</div> | |
</ContextMenuTrigger> | |
<ContextMenuTrigger id={MENU_ID} collect={props => props} name="Bar" isInCollection> | |
<div>...</div> | |
</ContextMenuTrigger> | |
</div> | |
) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment