We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 334dd89 commit 7f558c6Copy full SHA for 7f558c6
src/components/hoc/styled.tsx
@@ -40,6 +40,10 @@ type Styler<Props> =
40
* const Dynamic = styled(Text)(theme => props => ({ color: props.color ?? theme.color }))
41
* const DynamicSansTheme = styled(Text)(_theme => props => ({ color: props.color }))
42
* ```
43
+ *
44
+ * @deprecated Use `cacheStyles` for styles, or if there really is a needed
45
+ * abstraction, create a new full component (but think about it atleast three
46
+ * times before you do).
47
*/
48
export function styled<BaseProps extends StyleProps>(
49
Component: React.ComponentType<BaseProps>
0 commit comments