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

Function Demo

tests/Select.test.tsx:1671–1690  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1669 const errorSpy = jest.spyOn(console, 'error').mockImplementation(() => {});
1670
1671 const Demo = () => {
1672 const [, setVal] = React.useState(0);
1673
1674 return (
1675 <Select
1676 onChange={setVal}
1677 defaultValue={0}
1678 options={[
1679 {
1680 value: 0,
1681 label: <div />,
1682 },
1683 {
1684 value: 1,
1685 label: <div />,
1686 },
1687 ]}
1688 />
1689 );
1690 };
1691
1692 const { container } = render(<Demo />);
1693

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…