Skip to content
This repository has been archived by the owner on Jun 21, 2023. It is now read-only.

Commit

Permalink
fix: use key while rendering arrays (vercel#25902)
Browse files Browse the repository at this point in the history
Fixes one of the items that was mentioned in vercel#25854.

It fixes warning from React in `with-react-multi-carousel`.
  • Loading branch information
Pavel Mineev committed Jun 9, 2021
1 parent 350e74b commit cf45f33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/with-react-multi-carousel/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class Index extends Component {
deviceType={''}
>
{images.map((image) => {
return <Image url={image} alt={image} />
return <Image key={image} url={image} alt={image} />
})}
</Carousel>
</div>
Expand Down

0 comments on commit cf45f33

Please sign in to comment.