title: Can I use hooks inside a function (not a functional component)
body: <p>Here is where I would like to use my hook so that I can change one state during the run of the app.</p>
  <pre><code>export const simpleFunction = () =&gt; (state) =&gt; {
     // here is the hook 
  }
  </code></pre>
  <p>I know react hooks should be used in functional components, but what about the case stated above.</p>