React & React Native

React Hook Form

Në shqip përdoret i njëjti emër.

ShpjegimiSQ

React Hook Form e bën ndërtimin e formularëve më të lehtë dhe më të shpejtë: regjistron fushat, i validon (shpesh me Zod) dhe shfaq gabimet, pa rishfaqur gjithë formularin me çdo shkronjë.

EnglishEN

React Hook Form makes building forms easier and faster: it registers the fields, validates them (often with Zod) and shows errors, without re-rendering the whole form on every keystroke.

Si ta mendosh

Si një sekretare që ta kontrollon formularin fushë pas fushe ndërsa e plotëson.

Lexoje në anglisht

Like a secretary checking your form field by field as you fill it in.

Shembull kodijavascript

const { register, handleSubmit, formState } = useForm();
<form onSubmit={handleSubmit(ruaj)}>
  <input {...register("email", { required: true })} />
</form>

Terma të lidhur