mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-05 01:19:45 +08:00
34299b39ea
* docs(message): use message hooks api * docs(message): 保留一个静态方法调用 * docs: move docs demo order
428 B
428 B
order | title | ||||
---|---|---|---|---|---|
6 |
|
zh-CN
信息提醒反馈。
en-US
Normal message for information.
import React from 'react';
import { Button, message } from 'antd';
const info = () => {
message.info('This is a normal message');
};
const App: React.FC = () => (
<Button type="primary" onClick={info}>
Display normal message
</Button>
);
export default App;