19 lines
350 B
JavaScript
19 lines
350 B
JavaScript
import React from "react";
|
|
import "./Table.css";
|
|
|
|
function Table({ countries }) {
|
|
return (
|
|
<section className="table">
|
|
{countries.map(({ country, cases }) => (
|
|
<tr>
|
|
<td>{country}</td>
|
|
<td>
|
|
<strong>{cases}</strong>
|
|
</td>
|
|
</tr>
|
|
))}
|
|
</section>
|
|
);
|
|
}
|
|
|
|
export default Table; |