MCPcopy
hub / github.com/dai-shi/react-tracked / useFormError

Function useFormError

examples/11_form/src/form.ts:32–36  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

30};
31
32const useFormError = (name: string) => {
33 const state = useTrackedState();
34 const err = state.errors[name];
35 return err ? err.message : '';
36};
37
38const useFormField = (
39 name: string,

Callers 1

person-form.tsxFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…