React Lightbox

Example 1: basic usage

The element in LightboxTrigger will get 'openLightbox' property and bind it to onClick event automatically.

You can also trigger the 'openLightbox' method in whatever way you like.