JSFiddle - React, Tailwind, and code Playground

HTML

<label class="custom-checkbox">
    
 <img class="img" src="https://placeimg.com/640/480/any" width="300"/>
  <input type="checkbox">
  <span></span>
</label>

JavaScript

$(document).ready(function() {
 $('img').click(function() {
 $(this).find('checkbox').checked(true);
 })
});