Skip to content

Commit

Permalink
Add missing key prop (#17)
Browse files Browse the repository at this point in the history
Co-authored-by: John van de Water <[email protected]>
  • Loading branch information
jchn and John van de Water authored Jan 9, 2023
1 parent 9239fe8 commit bebd202
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/simple-masonry-layout-react/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ import Layout from "@jchn/simple-masonry-layout-react"

const MasonryGrid = () => {
const items = [
{ size: { width: 150, height: 200 }, data: null },
{ size: { width: 200, height: 150 }: data: null },
{ size: { width: 150, height: 200 }, data: { key: 'some-unique-key' } },
{ size: { width: 200, height: 150 }: data: { key: 'some-other-unique-key' } },
];

return (
Expand Down

0 comments on commit bebd202

Please sign in to comment.