title: Change react hook state from parent component
body: <p>I have a hook component like this:</p>
  
  <pre class="lang-js prettyprint-override"><code>import React, { useState} from "react";
  
  const MyComponent = props =&gt; {
    const [value, setValue] = useState(0);
    const cleanValue = () =&gt; {
      setValue(0);
    };
  
    return (&lt;span&gt;&lt;button onClick={()=&gt;setValue(1)}/&gt;{value}&lt;span&gt;)
  }
  </code></pre>
  
  <p>I want to reset value from the parent component. How I can call clean value from parent component? the parent component is a stateful component.</p>