【发布时间】:2021-07-14 08:50:03
【问题描述】:
<Autocomplete
value={value}
onChange={(event, newValue) => {
setValue(newValue);
}}
inputValue={inputValue}
onInputChange={(event, newInputValue) => {
setInputValue(newInputValue);
}}
id="controllable-states-demo"
options={options}
style={{ width: 300 }}
renderInput={(params) => <TextField {...params} label="Controllable" variant="outlined" />}
/>
请帮帮我,我是打字稿的新手...在下图中,您将看到错误。
谢谢。
【问题讨论】:
标签: reactjs typescript autocomplete material-ui