I'm doing an App where I fetch a list of Job Offers with the Recruitee API. I stored the fetched Array in a state called jobs.
It looks something like this :
jobs = [ 0: {title: frontent-developer, company: whatever, departement: software}, 1: {title: fullstach-devloper, company: foobar, departement: management}]
Now I want to display it as a list with the help of the map function like this:
<ul>
{jobs.map((row) => {
return <li>(row.title)</li>;
})}
</ul>
Now I get the error Error: Property 'map' does not exist on type '{}'. TS2339 and I'm not sure what is wrong or what to do.
Does somebody got an idea?
Try like this