JSFiddle - React, Tailwind, and code Playground

HTML

<img src="pic.jpg" data-href="about.html" />
<img src="pic2.jpg" />

JavaScript

$(document).ready(function() {
    $(document.body).find("[data-href]").each(function() {
        var $this = $(this);
        $this.css("cursor", "pointer");
        
        $this.click(function() {               
           var newWindow = window.open($this.data("href"), '_blank');
           newWindow.focus();
       });
    });
});