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
The text was updated successfully, but these errors were encountered:
Opty1712
changed the title
TS don't see props after «styled()» of «withTheme(styled.button...)»
TS doesn't see props after «styled()» of «withTheme(styled.button...)»
Dec 25, 2021
It wasn't obvious for me aswell, but withTheme HOC the theme is set in the theme prop.
Which is ofcourse logical, since you could also pass other props.
Linking with callstack/linaria#893
Environment
Description
If I add Button directly - no error
If I remove
withTheme
- no error tooReproducible Demo
https://codesandbox.io/s/wild-grass-g4e0u?file=/src/App.tsx
The text was updated successfully, but these errors were encountered: