Б
<Tabs defaultActiveKey="1">
{Object.keys(weat).map(day => (
<TabPane tab="Tab">
{weat[day].map(card => (
<div>
<Title level={3}>{card.name}</Title>
<Card title={card} bordered style={{ width: 300 }}>
<p>Now temperature is {(card.main.temp - 273).toFixed(1)} C</p>
<p>It feels like {(card.main.feels_like - 273).toFixed(1)} C</p>
</Card>
</div>
)
)}
</TabPane>
)
)}
</Tabs>
Но получаю ошибку Error: Objects are not valid as a React child (found: object with keys {dt, main, weather, clouds, wind, rain, sys, dt_txt}). If you meant to render a collection of children, use an array instead.