title: typescript & react Property 'imageUrl' does not exist on type 'IStarView[]'
body: <p>I try to call it after saving data in setState, but I keep getting a type error. How would you like to solve it?</p>
  <p><strong>Property 'imageUrl' does not exist on type 'IStarView[]'.</strong></p>
  <pre><code>//Interfaces.ts
  export interface IStarView {
    id: number;
    imageUrl: string;
    productList: string | number;
  }
  
  </code></pre>
  <pre><code>//App.tsx
  import { useEffect, useState } from &quot;react&quot;;
  import { IStarView } from &quot;src/Interfaces&quot;;
  import ProductCard from &quot;@components/ProductCard&quot;;
  
  function StarView() {
    const [data, setData] = useState&lt;IStarView[]&gt;([]);
    
  ...
  
    console.log:(da) = (data.imageUrl);
    useEffect(() =&gt; {
      getData();
    }, []);
  </code></pre>