mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-28 19:18:40 +08:00
18 lines
206 B
Markdown
18 lines
206 B
Markdown
# 基本
|
|
|
|
- order: 0
|
|
|
|
最简单的用法。
|
|
|
|
---
|
|
|
|
````jsx
|
|
import { Affix, Button } from 'antd';
|
|
|
|
ReactDOM.render(
|
|
<Affix>
|
|
<Button type="primary">固定在顶部</Button>
|
|
</Affix>
|
|
, mountNode);
|
|
````
|