title: Changing the child's useState from Parent component react hooks
body: <p>I have e child component named Window and I have this useState in Window component:</p>
  <pre><code>Window Component:
        const [showWindow, setShowWindow] = useState(false);
  </code></pre>
  <p>Imagine this is the parent component</p>
  <pre><code>Parent component :
  /////
  ////
  ////
  &lt;Window/&gt;
  &lt;Button/ onClick={()=&gt;{
  setShowWindow(true)
  }}&gt;
  /////
  /////
  </code></pre>
  <p>As it can be seen I have a Button component here and I want to set the showWindow to 'true' through it.</p>
  <p>How can I change the useState in the child component from its parent component like this example? How can I access to it?</p>