When adding 2 or more modals/carousels on a page there is a conflict. Can the instances (states?) have a property where they can be assigned a unique identifier?
Expected: When clicking a thumbnail for one of two or more galleries the image the image appearing in the lightbox should be the same as the image in thumbnail.
Actual: The image which appears is from the last gallery on the page regardless of which gallery is clicked on.
Example:
https://codesandbox.io/s/react-photo-gallery-with-image-viewer-gcsq8