title: How to reset input field from useRef in React?
body: <p>I have a text input. If I click on a specific button in the page, I want to reset the value of the input. Here is my code:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>const inputRef = useRef()
  
  const handleClick= () =&gt; {
   inputRef.current.value.reset();
   return "hello world"
  }
  
  return (
  &lt;&gt;
  &lt;input type="text" ref={inputRef}/&gt;
  &lt;button onClick={()=&gt; handleClick}&gt;delete all&lt;/button&gt;
  &lt;/&gt;
  )</code></pre>
  </div>
  </div>
  </p>
  
  <p>It doesn't work. How to fix this?</p>