How can I set checkbox to checked state in a React Hook Form?
https://stackoverflow.com/questions/71793608/how-can-i-set-checkbox-to-checked-state-in-a-react-hook-form
WEBApr 8, 2022 · The simple code for the checkbox is as below: import React from 'react' import { useForm } from 'react-hook-form' export default function App() { const { register, handleSubmit, formState: { errors }, } = useForm() const onSubmit = (data: any) => console.log(data) console.log(errors) return ( <div className='mx-auto justify-center p …
DA: 93 PA: 71 MOZ Rank: 87