JSFiddle - React, Tailwind, and code Playground

HTML

<script src="http://sachinchoolur.github.io/lightGallery/light-gallery/js/lightGallery.js"></script>
<link rel="stylesheet" href="http://sachinchoolur.github.io/lightGallery/light-gallery/css/lightGallery.css">
<ul id="lightGallery">
    <li data-link="http://sachinchoolur.github.io/lightGallery/" data-title="LightGallery Demo" data-src="http://sachinchoolur.github.io/lightGallery/img/img1.jpg">
        <img src="http://sachinchoolur.github.io/lightGallery/img/thumb1.jpg" />
    </li>
    <li data-link="http://sachinchoolur.github.io/lightGallery/examples.html" data-title="LightGallery Examples" data-src="http://sachinchoolur.github.io/lightGallery/img/img2.jpg">
        <img src="http://sachinchoolur.github.io/lightGallery/img/thumb2.jpg" />
    </li>
</ul>

CSS

ul{
    list-style: none outside none;
    padding-left: 0;
}
li {
    display: block;
    float: left;
    height: 100px;
    margin-bottom: 6px;
    margin-right: 6px;
    width: 100px;
}
button{
    cursor:pointer;
}

JavaScript

$('#lightGallery').lightGallery({
    caption:true,
    captionLink:true
})