JSFiddle - React, Tailwind, and code Playground

HTML

<a href="#" id="name">
    <img title="Hello" src="http://icons.iconarchive.com/icons/fasticon/web-2/256/Google-icon.png" />
</a>

JavaScript

$('#name img').hover(function() {
  $(this).attr('src', 'http://aux4.iconpedia.net/uploads/91546417.png');
}, function() {
  $(this).attr('src', 'http://icons.iconarchive.com/icons/fasticon/web-2/256/Google-icon.png');
});