Skip to content

Commit

Permalink
Merge pull request #169 from saratonite/dev
Browse files Browse the repository at this point in the history
Udate README.md gist
  • Loading branch information
fkhadra authored Jan 26, 2021
2 parents 67057ee + a38b7e3 commit 42e7d20
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ $ npm install --save react-contexify

```js
import React from 'react';
import { Menu, Item, Separator, Submenu, MenuProvider } from 'react-contexify';
import { Menu, Item, Separator, Submenu, MenuProvider, useContextMenu } from 'react-contexify';
import 'react-contexify/dist/ReactContexify.css';

const MENU_ID = 'blahblah';
Expand All @@ -43,8 +43,7 @@ function App() {

function handleContextMenu(event){
event.preventDefault();
show({
event,
show(event, {
props: {
key: 'value'
}
Expand Down

0 comments on commit 42e7d20

Please sign in to comment.