import React from 'react'; import { App, Button, Space } from 'antd'; // Sub page const MyPage = () => { const { message, notification } = App.useApp(); const showMessage = () => { message.success('Success!'); }; const showNotification = () => { notification.info({ message: 'Notification', description: 'Hello, Ant Design!!', }); }; return ( ); }; // Entry component export default () => ( );