Image Gallery for React
Here's a basic example on how to create a simple image gallery with React. (edit Stackblitz).
If you want to provide images data directly to PhotoSwipe, refer to Data sources page.
There is also an unofficial React gallery component by @irudoy that could be very useful.