JSFiddle - React, Tailwind, and code Playground

HTML

<a id="link">Google</a>

JavaScript

$('#link').attr('href','http://www.google.com');