diff --git a/README.md b/README.md index cbae64f..376f6ef 100644 --- a/README.md +++ b/README.md @@ -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'; @@ -43,8 +43,7 @@ function App() { function handleContextMenu(event){ event.preventDefault(); - show({ - event, + show(event, { props: { key: 'value' }