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
I get this Typescript error when I use the HoverMenu component:
'HoverMenu' cannot be used as a JSX component.
Its element type 'ReactElement<any, any> | Component<MenuProps, any, any> | null' is not a valid JSX element.
Type 'Component<MenuProps, any, any>' is not assignable to type 'Element | ElementClass | null'.
Type 'Component<MenuProps, any, any>' is not assignable to type 'ElementClass'.
The types returned by 'render()' are incompatible between these types.
The text was updated successfully, but these errors were encountered:
Sorry for the long delay, can you tell me what version of this package and of TypeScript you're using?
This is pretty mysterious, in material-ui-popup-state 4.1.0 and in v5 it's been declared as HoverMenu: React.ComponentType<MenuProps>, which should be pretty foolproof, and it's weird that Component is winding up among the possible element types.
I get this Typescript error when I use the HoverMenu component:
The text was updated successfully, but these errors were encountered: