Skip to content

Commit

Permalink
Udate README.md gist
Browse files Browse the repository at this point in the history
  • Loading branch information
srttk committed Jan 21, 2021
1 parent 67057ee commit a38b7e3
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 a38b7e3

Please sign in to comment.