May 8, 2023
Data Tables
https://deno.land/x/html_table@v1.0.0
https://stackdiary.com/guides/create-table-javascript/
https://linuxhint.com/add-row-to-html-table-using-javascript/
https://shopify.engineering/building-data-table-component-react
https://stackoverflow.com/questions/49665450/appending-a-new-html-element-inside-existing-div-in-react-js
https://stackoverflow.com/questions/22876978/loop-inside-react-jsx
https://stackoverflow.com/questions/36905536/how-to-iterate-through-key-value-pair-in-javascript-if-i-dont-know-key-name
https://stackoverflow.com/questions/57086672/element-implicitly-has-an-any-type-because-expression-of-type-string-cant-b
https://effectivetypescript.com/2020/05/26/iterate-objects/
Create divs from array in React-type framework
export default function Body() {
return (
<div>
<table class=" border-2">
{
[1, 2, 3, 4, 5, 6].map((value, index) => {
return <div key={index}>{value}</div>
})
}
</table>
</div>
)
}
Create a table in React-type framework
export default function Body() {
return (
<div>
<table class=" border-2">
{
[1, 2, 3, 4, 5, 6].map((value, index) => {
return <tr key={index}>{value}
<td>cell content</td>
<td>{value}</td>
</tr>
})
}
</table>
</div>
)