contextmenu
contextmenu copied to clipboard
(React) different way passing ref
const ctx = useContextMenu(targetRef)
// to
const { targetRef, ctx } = useContextMenu()
<div ref={targetRef}>menu</div>
leads to a new problem: how to determine it's a global menu or not?