Data table
Renders a table with rows dynamically created from an array of primitives.
- Render a
<table>
element with two columns (ID
andValue
). - Use
Array.prototype.map()
to render every item indata
as a<tr>
element with an appropriatekey
.
Renders a table with rows dynamically created from an array of primitives.
<table>
element with two columns (ID
and Value
).Array.prototype.map()
to render every item in data
as a <tr>
element with an appropriate key
.