import React from 'react'; import { Button, message } from 'antd'; const App: React.FC = () => { const [messageApi, contextHolder] = message.useMessage(); const info = () => { messageApi.info('Hello, Ant Design!'); }; return ( <> {contextHolder} ); }; export default App;