contextmenu icon indicating copy to clipboard operation
contextmenu copied to clipboard

(React) different way passing ref

Open vaakian opened this issue 3 years ago • 0 comments

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?

vaakian avatar Oct 28 '22 08:10 vaakian