import React from 'react'; import { PageContainer } from '@ant-design/pro-layout'; import { Card, Alert, Typography, Input } from 'antd'; import { useIntl, FormattedMessage } from 'umi'; import styles from './Welcome.less'; import { useControlledValue } from 'ahooks'; export interface MyTestProps { firstName?: string; lastName: string; } export interface MyinputProps { value: string; onChange: (value: string) => void; } export function MyInput(props: MyinputProps) { const [thisValue, setThisValue] = useControlledValue(props); // const { value, onChange } = props; return setThisValue('xyz')}>; } export function MyTest(props: MyTestProps) { return
{props.firstName}
; } const CodePreview: React.FC = ({ children }) => (
    
      {children}
    
  
); export default (): React.ReactNode => { const intl = useIntl(); return ( {' '} yarn add @ant-design/pro-table {' '} yarn add @ant-design/pro-layout ); };