Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions npm-lib/styled-components/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ render(
可用 `&` 来替代当前组件的 className,编译后会被替换:

```tsx
onst Thing = styled.div`
const Thing = styled.div`
color: blue;

&:hover {
Expand Down Expand Up @@ -462,7 +462,7 @@ render(
动态 CSS 属性名:

```tsx
onst EqualDivider = styled.div`
const EqualDivider = styled.div`
display: flex;
margin: 0.5rem;
padding: 1rem;
Expand Down Expand Up @@ -501,7 +501,7 @@ render(

#### 3.3 注意

避免将 styled-compoents 生成的组件放在 render 中:
避免将 styled-components 生成的组件放在 render 中:

```tsx
// 🚫
Expand Down