title: React/TypeScript - Type 'false | Element' is not assignable to type 'Element'
body: <p>I am getting this error: <strong>Type 'false | Element' is not assignable to type 'Element'.</strong></p>
  <p>I am using React and TypeScript and the code looks like:</p>
  <pre><code>function App() {
      const [isSearching, setIsSearching] = useState(false);
      return (
          {isSearching &amp;&amp; &lt;div&gt; Hey &lt;/div&gt;}
      )
  }
  </code></pre>
  <p><code>{isSearching &amp;&amp; &lt;div&gt; Hey &lt;/div&gt;}</code> is giving the above error</p>
  <p>Can anyone please help me point out what I may be missing here?</p>