lab 4 done

This commit is contained in:
2026-04-03 00:22:29 +10:00
parent 918a141a9f
commit 5aa559e99f
15 changed files with 759 additions and 410 deletions

View File

@@ -0,0 +1,19 @@
/*
компонент, для вывода строки таблицы
пропсы:
row - данные для формирования ячеек строки таблицы в виде массива
isHead - 0 - если формируются ячейки td, 1 - если формируются ячейки th
*/
const TableRow = (props) => {
const cells = (props.isHead == "0")
? props.row.map((item, index) => <td key={ index }> {item} </td>)
: props.row.map((item, index) => <th key={ index }> {item} </th>);
return(
<> {cells} </>
)
}
export default TableRow;