Store the input's value in a state variable. When a certain event occurs, set the state variable to an empty string. For uncontrolled components, set the ref's ...
確定! 回上一頁