We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 850cf4e commit 0bc18d3Copy full SHA for 0bc18d3
src/App.js
@@ -78,19 +78,19 @@ function ResultsTable({ columns, values }) {
78
<table>
79
<thead>
80
<tr>
81
- {columns.map((columnName) => (
82
- <td>{columnName}</td>
+ {columns.map((columnName, i) => (
+ <td key={i}>{columnName}</td>
83
))}
84
</tr>
85
</thead>
86
87
<tbody>
88
{
89
// values is an array of arrays representing the results of the query
90
- values.map((row) => (
91
- <tr>
92
- {row.map((value) => (
93
- <td>{value}</td>
+ values.map((row, i) => (
+ <tr key={i}>
+ {row.map((value, i) => (
+ <td key={i}>{value}</td>
94
95
96
))
0 commit comments