React Material-UI how to save TextFields in Typescript

Viewed 262

How can I save an input with Material-UI TextFields in Typescript. My idea was to have a default value in the TextField and with a button, it should save the new value from the user.

1 Answers

you should use onChange for Textfields

onChange={(e)=>this.saveTextFields(e.target.value)}
Related