We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c7d07e commit 7a89e12Copy full SHA for 7a89e12
src/content/ts.mdx
@@ -103,8 +103,8 @@ export default function App() {
103
104
return (
105
<form onSubmit={handleSubmit(onSubmit, onError)}>
106
- <input {...register("firstName")} />
107
- <input {...register("lastName")} />
+ <input {...register("firstName"), { required: true }} />
+ <input {...register("lastName"), { minLength: 2 }} />
108
<input type="email" {...register("email")} />
109
110
<input type="submit" />
0 commit comments