Skip to content
Advertisement

How to clear TextField in react?

Hi everyone i have a question regarding on how to clear TextField after clicking the icon? thanks

JavaScript

Advertisement

Answer

Here is the whole solve. There was an error in the filterResults function.

JavaScript

Codesnadbox link – https://codesandbox.io/s/how-to-clear-textfield-in-react-tb73t

User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement