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

Function Test

src/useFormState.test.js:33–37  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

31
32 it("state should be enumerable", () => {
33 const Test = () => {
34 const state = useFormState();
35 expect(Object.keys(state).length > 0).toBe(true);
36 return <div>It worked</div>;
37 };
38 render(
39 <Form onSubmit={() => {}}>
40 {({ handleSubmit }) => (

Callers

nothing calls this directly

Calls 1

useFormStateFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…