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

Method render

tests/Combobox.test.tsx:173–189  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

171 };
172
173 public render() {
174 const options = this.state.data.map((item) => (
175 <Option key={item.key} value={item.key}>
176 {item.label}
177 </Option>
178 ));
179 return (
180 <Select
181 mode="combobox"
182 onChange={this.handleChange}
183 filterOption={false}
184 notFoundContent=""
185 >
186 {options}
187 </Select>
188 );
189 }
190 }
191 const { container } = render(<AsyncCombobox />);
192 fireEvent.focus(container.querySelector('input')!);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected