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

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?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source