title: React Hook "useState" is called in function "AAA" which is neither a React function component or a custom React Hook function
body: <p>i got this error for this code fragment.</p>
  
  <pre><code>const AB= () =&gt; {
  
    const [A, setA] = useState&lt;AT| null&gt;(null);
    const [B, setB] = useState&lt;string&gt;('0px');
  
  ..more}
  </code></pre>