Answers for "how to clear input field in react js"

1

how to empty input field in react

event.target.value = ''
//grab the target input and set it empty. you can use it in the onclick
Posted by: Guest on November-19-2021
3

clear input file html react

e.target.value = null;
Posted by: Guest on March-08-2020

Code answers related to "how to clear input field in react js"

Browse Popular Code Answers by Language