MCPcopy Index your code
hub / github.com/react-hook-form/react-hook-form / makeEvent

Function makeEvent

scripts/bench.ts:29–33  ·  view source on GitHub ↗
(name: string, value: string)

Source from the content-addressed store, hash-verified

27}
28
29function makeEvent(name: string, value: string) {
30 // target.type is omitted → onChange uses getEventValue(event) instead of
31 // getFieldValue(field._f), which avoids needing a real DOM element.
32 return { type: 'change', target: { name, value } } as unknown as Event;
33}
34
35// ---------------------------------------------------------------------------
36// Bench setup

Callers 1

bench.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…