lab5 folder create

This commit is contained in:
=
2026-04-06 13:52:08 +10:00
parent f2aa7ae0c0
commit 2825e82487
20 changed files with 4112 additions and 0 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;