Skip to content

Commit

Permalink
docs: 修改文档
Browse files Browse the repository at this point in the history
  • Loading branch information
hualigushi committed Jun 27, 2023
1 parent 1287eab commit 95863d5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/docs/max/styled-components.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,14 @@ export default {
比如:

```ts
import {createGlobalStyle} from "umi";
import { createGlobalStyle } from "umi";

export const styledComponents = {
export const styledComponents = () => ({
GlobalStyle: createGlobalStyle`
h1 {
background: #ccc;
}
`
}
})
```

0 comments on commit 95863d5

Please sign in to comment.