Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update README.md fix spelling like onst compoents #1

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
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