MUI autocomplete: How to add user input text into the const list?

Viewed 579

In MUI autocomplete component, I wish when user input some text, our system could save it into the list, and load the list when user click it on next time.

<Autocomplete
id="free-solo-demo"
freeSolo
options={top100Films.map((option) => option.title)}
renderInput={(params) => <TextField {...params} label="freeSolo" />}
      />

Now, the free solo is open. User could input any text they want. How could we add those into the list?

0 Answers
Related