Skip to content

Commit

Permalink
provide unique cell key
Browse files Browse the repository at this point in the history
  • Loading branch information
rgbkrk committed Jan 14, 2024
1 parent 2c092bf commit 7e98930
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ function App() {
return (
<div>
{cells.map((cellId: string) => (
<Cell cellId={cellId}/>
<Cell cellId={cellId} key={cellId}/>
))}
<Button onClick={createCell}>New Cell</Button>
</div>
Expand Down

0 comments on commit 7e98930

Please sign in to comment.