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
Styled-components allow you to set default props for a component using .attrs() method.
Right now, after migrating to xstyled wrapper I was had to rewrite all my components like e.g.
馃悰 Bug Report
Styled-components
allow you to set default props for a component using.attrs()
method.Right now, after migrating to xstyled wrapper I was had to rewrite all my components like e.g.
to
To Reproduce
You'll get
Object(...)(...).attrs is not a function
Expected behavior
It should work in the same way as it proposed in a documentation of a
styled-components
packageLink to repl or repo (highly encouraged)
https://codesandbox.io/s/festive-dhawan-rn2yw?fontsize=14 (you'll have to download the code and run on your local machine, cuz codesandbox have some troubles with your package while it's perfectly working on a local server)
Paste the results here:
The text was updated successfully, but these errors were encountered: