Update snippet formatting
This commit is contained in:
@ -9,7 +9,7 @@ Renders a table with rows dynamically created from an array of primitives.
|
||||
- Use `Array.prototype.map` to render every item in `data` as a `<tr>` element, consisting of its index and value, give it a `key` produced from the concatenation of the two.
|
||||
|
||||
```jsx
|
||||
function DataTable({ data }) {
|
||||
const DataTable = ({ data }) => {
|
||||
return (
|
||||
<table>
|
||||
<thead>
|
||||
@ -28,7 +28,7 @@ function DataTable({ data }) {
|
||||
</tbody>
|
||||
</table>
|
||||
);
|
||||
}
|
||||
};
|
||||
```
|
||||
|
||||
```jsx
|
||||
|
||||
Reference in New Issue
Block a user