diff --git a/packages/components/src/Form/docs/forms-concept/accessValue.tsx b/packages/components/src/Form/docs/forms-concept/accessValue.tsx index 0a6d0c666..2fa0bd272 100644 --- a/packages/components/src/Form/docs/forms-concept/accessValue.tsx +++ b/packages/components/src/Form/docs/forms-concept/accessValue.tsx @@ -2,23 +2,23 @@ import { Button, ButtonGroup, Form, TextField } from "@hopper-ui/components"; import { useState, type FormEvent } from "react"; export default function Example() { - let [name, setName] = useState(""); + const [name, setName] = useState(""); - let onSubmit = (e: FormEvent) => { - e.preventDefault(); + const onSubmit = (e: FormEvent) => { + e.preventDefault(); - // Submit data to your backend API... - alert(name); - }; + // Submit data to your backend API... + alert(name); + }; - return ( -
- ); + return ( + + ); } diff --git a/packages/components/src/Form/docs/forms-concept/customValidation.tsx b/packages/components/src/Form/docs/forms-concept/customValidation.tsx index ef4ee77ad..86eef6d64 100644 --- a/packages/components/src/Form/docs/forms-concept/customValidation.tsx +++ b/packages/components/src/Form/docs/forms-concept/customValidation.tsx @@ -2,14 +2,14 @@ import { Button, ButtonGroup, Form, TextField } from "@hopper-ui/components"; import { useState, type FormEvent } from "react"; export default function Example() { - let [submitted, setSubmitted] = useState