The anchorEl prop provided to the component is invalid. code example
Example: The anchorEl prop provided to the component is invalid.
check this it will help you - https://codesandbox.io/s/use-ref-for-anchorel-forked-1pvh1
check this it will help you - https://codesandbox.io/s/use-ref-for-anchorel-forked-1pvh1