reshadow
reshadow copied to clipboard
"as" property conflict
as
property must be ignored when it set in a class / function components.
Error (TypeError: Cannot read property 'startsWith' of undefined
):
<MenuItem {...menu} as={ThemeSettings} />
Fine:
<MenuItem {...menu} {...{ as: ThemeSettings }} />