You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I want to create context menu whose content reflects the right-clicked area so I need to first access the
event.target
and then create menu based on it. Here is the official example: https://codesandbox.io/p/sandbox/trusting-rui-2duieo?file=%2Fsrc%2FContextMenu.tsxShould I keep context menu content as a
state
and update it inonContextMenu
method?Beta Was this translation helpful? Give feedback.
All reactions