()
| 36 | }; |
| 37 | |
| 38 | render() { |
| 39 | const { label, options } = this.state; |
| 40 | |
| 41 | return ( |
| 42 | <div> |
| 43 | label: {label} |
| 44 | <hr /> |
| 45 | <Select |
| 46 | defaultValue="lucy" |
| 47 | optionLabelProp="children" |
| 48 | style={{ width: 120 }} |
| 49 | onChange={handleChange} |
| 50 | > |
| 51 | <Option value="lucy">{label}</Option> |
| 52 | <Option value="lucy2">lucy2</Option> |
| 53 | </Select> |
| 54 | <p> |
| 55 | <button type="button" onClick={this.updateLabel}> |
| 56 | update option label |
| 57 | </button> |
| 58 | </p> |
| 59 | <hr /> |
| 60 | <Select mode="combobox" optionLabelProp="children" onChange={this.updateOptions}> |
| 61 | {options.map((opt) => ( |
| 62 | <Option key={opt}>{opt}</Option> |
| 63 | ))} |
| 64 | </Select> |
| 65 | <hr /> |
| 66 | </div> |
| 67 | ); |
| 68 | } |
| 69 | } |
| 70 | |
| 71 | export default Test; |
nothing calls this directly
no outgoing calls
no test coverage detected