JSFiddle - React, Tailwind, and code Playground
HTML
<title>Bootstrap LightBox Example</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-lightbox/0.7.0/bootstrap-lightbox.min.css">
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-lightbox/0.7.0/bootstrap-lightbox.min.js"></script>
<style type="text/css">
.lightbox{
z-index: 1041;
}
.small-img{
width: 100px;height: 100px;
}
.imgs img {
padding=10px;
margin=0;
}
</style>
<img src="https://cdn4.buysellads.net/uu/1/8026/1533070278-Slack-pink_logo.png" />
<div id='imgs'>
<img src="http://placecorgi.com/700/500?index=random" />
<img src="http://www.placebear.com/700/500?index=random" />
<img src="https://spaceholder.cc/700x500?index=random" />
<img style="padding=10px;margin=0;" src="http://placebeard.it/700/500/notag" />
</div>
JavaScript
$(function(){
$('#imgs img').each(function(){
$(this).wrap('<li><a href="'+$(this).attr('src')+'" data-lightbox="rebelbase">','</a><li>')
});
});