JSFiddle - React, Tailwind, and code Playground
HTML
<li class="myClass"></li>
CSS
.myClass {
border-radius: 50%;
background: #f5f5f5;
transition: all 0s ease-in-out;
box-shadow: 0 0 3px gray;
width: 45px;
height: 45px;
}
.myNewClass {
background: url(http://static4.wikia.nocookie.net/__cb20131121214007/destinypedia/images/7/71/Information_Icon.svg) no-repeat;
background-size:100% 100%;
}
/* SO while I have this circle, I want to be back to toggle a class onClick that allows me to do: */
/* background-image: url(someURL); */
/* And have a background image in the circle */
JavaScript
$('.myClass').on('click', function() {
$(this).addClass('myNewClass');
})