Skip to content

Commit 7f558c6

Browse files
committed
Make major upgrade to styled HOC
1 parent 334dd89 commit 7f558c6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/components/hoc/styled.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@ type Styler<Props> =
4040
* const Dynamic = styled(Text)(theme => props => ({ color: props.color ?? theme.color }))
4141
* const DynamicSansTheme = styled(Text)(_theme => props => ({ color: props.color }))
4242
* ```
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).
4347
*/
4448
export function styled<BaseProps extends StyleProps>(
4549
Component: React.ComponentType<BaseProps>

0 commit comments

Comments
 (0)