From a38b7e38fafa858969d979324a39f197849a5710 Mon Sep 17 00:00:00 2001 From: Sarath Date: Thu, 21 Jan 2021 10:33:42 +0530 Subject: [PATCH] Udate README.md gist --- README.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index cbae64f7..376f6ef3 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' }