Answers for "empty react state input forms"

0

empty react state input forms

handleReset = () => {
  Array.from(document.querySelectorAll("input")).forEach(
    input => (input.value = "")
  );
  this.setState({
    itemvalues: [{}]
  });
};
Posted by: Guest on June-28-2021

Browse Popular Code Answers by Language