Update snippet formatting

This commit is contained in:
Isabelle Viktoria Maciohsek
2020-09-06 14:20:45 +03:00
parent f384fc0ee3
commit 95746a843b
18 changed files with 60 additions and 71 deletions

View File

@ -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