mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-15 09:21:22 +08:00
43d7b9ca92
* chore: static config of theme * chore: static all method * test: add test case * docs: comment * docs: more info * test: update snapshot * test: fix test logic
15 lines
262 B
TypeScript
15 lines
262 B
TypeScript
import { Button, message } from 'antd';
|
|
import React from 'react';
|
|
|
|
const info = () => {
|
|
message.info('This is a normal message');
|
|
};
|
|
|
|
const App: React.FC = () => (
|
|
<Button type="primary" onClick={info}>
|
|
Static Method
|
|
</Button>
|
|
);
|
|
|
|
export default App;
|