🦜
Size: a a a
🦜
🦜
IK
IK
🦜
🦜
🦜
🦜
IK
🦜
🦜
🦜
export async function getStaticProps() {return {
const response = await fetch(DATA)
const data = await response.json()
const countries = Object.keys(data)
const aCountry = data[countries[0]]
const { date } = aCountry[aCountry.length - 1]
const rows = countries
.map(country => {
const { deaths } = data[country].find(
r => r.date === date
)
return { country, deaths }
})
.filter(r => r.deaths > 8)
}
IK
export async function getStaticProps() {return {
const response = await fetch(DATA)
const data = await response.json()
const countries = Object.keys(data)
const aCountry = data[countries[0]]
const { date } = aCountry[aCountry.length - 1]
const rows = countries
.map(country => {
const { deaths } = data[country].find(
r => r.date === date
)
return { country, deaths }
})
.filter(r => r.deaths > 8)
}
a
🦜
🦜
B