title: React Hooks Error: Hooks can only be called inside the body of a function component
body: <p>I am getting this error when using the <code>useState</code> hook. I have this in it's basic form, looking at the <a href="https://reactjs.org/docs/hooks-reference.html#usestate" rel="noreferrer">react docs</a> for a reference, but am still getting this error. I'm ready for the face palm moment...</p>
  
  <pre><code>export function Header() {
    const [count, setCount] = useState(0)
    return &lt;span&gt;header&lt;/span&gt;
  }
  </code></pre>