yandex / reshadow

Markup and styles that feel right

Home Page:https://reshadow.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

"as" property conflict

artalar opened this issue · comments

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} />

example

Fine:

<MenuItem {...menu} {...{ as: ThemeSettings }} />