Skip to content

Commit

Permalink
docs: readme
Browse files Browse the repository at this point in the history
  • Loading branch information
zombieJ committed Sep 4, 2023
1 parent 24dd259 commit 3487688
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
![Geek Theme](https://mdn.alipayobjects.com/huamei_7uahnr/afts/img/A*i3kvR6-tozgAAAAAAAAAAAAADrJ8AQ/original)

## About

🚨 Sample code in `styles/` use antd internal `genComponentStyleHook` to generate style hook.
It's only to simplify the dependency of this repo which is **not recommend** to use internal API in real world.
You can use any other css-in-js solution to generate style hook like `Emotion` or `styled-components`.

## Usage

Use ThemeProvider to wrap your app.
Expand All @@ -21,12 +29,6 @@ const App: React.FC = () => (
export default App;
```

## About

Sample code in `styles/` use antd internal `genComponentStyleHook` to generate style hook.
It's not recommend to use internal API in real world.
You can use any other css-in-js solution to generate style hook like `Emotion` or `styled-components`.

## API

### ThemeProvider
Expand Down

0 comments on commit 3487688

Please sign in to comment.