JSFiddle - React, Tailwind, and code Playground

by Ian Roberts

HTML

<img id="imgLogo" 
src="https://www.google.com/images/srpr/logo3w.png" alt="link to google" />

JavaScript

//wrap link around image

    $("#imgLogo").wrap('<a href="https://google.com/" target="_blank"></a>');