export default function Home() {
const [syncInput, isPropertyValid] = useValidation(AccountValidation);
return (
<>
<input
{...syncInput("username")}
style={{
border: !isPropertyValid("username")
? "thick double red"
: "thick double rgba(0,0,0,0)",
}}
type={"text"}
placeholder={"Enter your name"}
/>
</>
);
}
export default function Home() {
const [syncInput, isPropertyValid] = useValidation(AccountValidation);
return (
<>
<input
{...syncInput("username")}
style={{
border: !isPropertyValid("username")
? "thick double red"
: "thick double rgba(0,0,0,0)",
}}
type={"text"}
placeholder={"Enter your name"}
/>
</>
);
}