MCPcopy Create free account
hub / github.com/react-hook-form/react-hook-form / toggle

Function toggle

app/src/disabledFields.tsx:4–4  ·  view source on GitHub ↗
(state: boolean)

Source from the content-addressed store, hash-verified

2import { useForm } from 'react-hook-form';
3
4const toggle = (state: boolean) => !state;
5
6export default function DisabledFields() {
7 const [formDisabled, setFormDisabled] = React.useState(false);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected