Skip to content

Commit 764ee6d

Browse files
gillchristiantkh44
authored andcommitted
Fix example in TS docs (#691)
* Fix example in TS docs Added missing parens. Also updated formatting. * Remove unnecessary semicolo
1 parent caf1d81 commit 764ee6d

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

docs/typescript.md

+1-4
Original file line numberDiff line numberDiff line change
@@ -134,10 +134,7 @@ type StyledComponentProps = {
134134
} & ComponentProps
135135
// ^^^ You will need this
136136

137-
const StyledComponent =
138-
styled <
139-
StyledComponentProps >
140-
Component`
137+
const StyledComponent = styled<StyledComponentProps>(Component)`
141138
color: red;
142139
background: ${props => props.bgColor};
143140
`

0 commit comments

Comments
 (0)