Closed tahola closed 4 months ago
Hello!
I need to reasonate about this issue, but i think it can be affordable, the idea would be passing the entire item on the render method, and let the final user decide the prop to use.
Something like this:
return (
<Masonry
render={(item) => (
<img key={item.id} src={item.source} {{ ...others }} />
)}
/>
);
What do you think about?
This issue has been automatically closed due to inactivity. If you still have further updates, please feel free to reopen or create a new issue.
for now u can only map index before it get into the plock
https://github.com/askides/react-plock/blob/main/libs/react-plock/src/Plock.tsx#L80
Hello,
is it possible to get the real index in the render ?
Here idx is the number of the row, is there a proper clean way to know that I am displaying third item ? Like "index" in a map.
Thank you, and thanks a lot for your work