MCPcopy Create free account
hub / github.com/react-component/input / getInputRef

Function getInputRef

tests/focus.test.tsx:6–10  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4import { fireEvent, render } from '@testing-library/react';
5
6const getInputRef = () => {
7 const ref = React.createRef<any>();
8 render(<Input ref={ref} defaultValue="light" />);
9 return ref;
10};
11
12describe('Input.Focus', () => {
13 let inputSpy: ReturnType<typeof spyElementPrototypes>;

Callers 1

focus.test.tsxFile · 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…