title: React .map an object
body: <p>I've got an eslint error <strong>Property 'date' does not exist on type 'never'</strong>, and it's on <code>data.date</code>. Any idea how can I fix it?</p>
  
  <pre><code>import React from 'react'
  import app from './../Flamelink'
  
  function App() {
    const [data, setData] = React.useState([])
    React.useEffect(() =&gt; {
      const fetchData = async () =&gt; {
        const data = await app.content.get({
          schemaKey: 'persons'
        })
        setData(data)
      }
      fetchData()
    }, [])
    return (
      &lt;ul&gt;
        {data.map(data =&gt; (
          &lt;li&gt;{data.date}&lt;/li&gt;
        ))}
      &lt;/ul&gt;
    )
  }
  
  export default App
  </code></pre>