import {Button, InputOtp, Form} from "@heroui/react"; export default function App() { const [otp, setOtp] = React.useState(""); return (
{ e.preventDefault(); const formData = new FormData(e.currentTarget); const otp = formData.get("otp"); setOtp(otp); }} > {otp &&
OTP submitted: {otp}
} ); }