import React from 'react'; import {Button, Combo, Form, Controller, InputBox} from 'amis-ui'; export default function ControlledFormExamples() { const [formValues, setFormValues] = React.useState<{ a: any; b: any; }>({a: 1, b: 2}); const handleSubmit = React.useCallback((data: any) => { console.log('submit', data); }, []); const handleChange = React.useCallback((values: any) => { setFormValues(values); }, []); const handleRandomChange = React.useCallback(() => { setFormValues({ a: Math.random(), b: Math.random() }); }, []); return (