MCPcopy Create free account
hub / github.com/react-component/select / Demo

Function Demo

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

Source from the content-addressed store, hash-verified

34 const onFocus = jest.fn();
35
36 const Demo: React.FC = () => {
37 const [disabled, setDisabled] = useState(false);
38 return (
39 <>
40 <Select disabled={disabled} onFocus={onFocus} onBlur={() => setDisabled(true)} />
41 <button onClick={() => setDisabled(false)} />
42 </>
43 );
44 };
45
46 const { container } = render(<Demo />);
47

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…