Код: Выделить всё
export const SimpleTable = () => {
const employees = [
{ name: "John Doe", position: "Manager", employed: "23/04/18" },
{ name: "Alex Nar", position: "Producer", employed: "23/04/18" },
{ name: "Jane Smith", position: "Designer", employed: "12/11/20" }
]
return (
Name
Position
Employed
{employees.map((employee, index) => (
{employee.name}
{employee.position}
{employee.employed}
))}
)
}
Подробнее здесь: https://stackoverflow.com/questions/792 ... in-a-table