title: React useState empty array type
body: <pre><code>interface Crumb {
    title: string;
    url: string;
  }
  interface Crumbies {
    crumbsArray: Crumb[];
  }
  
  
  // component
  const [breadcrumbs, setBreadcrumbs] = useState&lt;Crumbies&gt;([]);
  </code></pre>
  
  <p>I'm getting an error:</p>
  
  <pre><code>TS2345: Argument of type 'never[]' is not assignable to parameter of type 'Crumbies | (() =&gt; Crumbies)'.   Type 'never[]' is not assignable to type '() =&gt; Crumbies'.     Type 'never[]' provides no match for the signature '(): Crumbies'.
  </code></pre>
  
  <p>How to provide a correct typings for an empty array in <code>useState</code> hook?</p>
  
  <p><strong>UPDATE 1</strong></p>
  
  <pre><code>const Breadcrumbs: React.FC&lt;Crumbies&gt; = ({ crumbsArray }) =&gt; {}
  </code></pre>
  
  <p>That's why i've created another interface <code>Crumbies</code> to wrap <code>Crumb</code>. Is there a better approach to this?</p>