News for hackers. Stuff that matters.
Re:Making SetInterval Declarative with React Hooks by scrollaway on Monday February 04, 2019 @02:17AM (#19074534)
In your example, the contextmenu component should not be created until the image is right-clicked.

So your <image> code would look something like this:

    return (<><img .../> {contextMenuActive ? <contextmenu>...</contextmenu> : null}</>);

There are no comments on this comment yet.