MCPcopy
hub / github.com/final-form/react-final-form / MyField

Function MyField

src/useField.test.js:150–155  ·  view source on GitHub ↗
({ name })

Source from the content-addressed store, hash-verified

148 it("should give same instance of handlers as value changes", () => {
149 const spy = jest.fn();
150 const MyField = ({ name }) => {
151 const { input } = useField(name, { subscription: { value: true } });
152 const { onChange, onFocus, onBlur } = input;
153 spy(onChange, onFocus, onBlur);
154 return <input {...input} />;
155 };
156 render(
157 <Form onSubmit={onSubmitMock}>
158 {() => (

Callers

nothing calls this directly

Calls 1

useFieldFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…