JSFiddle - React, Tailwind, and code Playground
HTML
<p>Click the anchor to set all it's styles to the same as the bold text</p>
<b>test</b>
<br /><br /><br />
<a href="#">anchor</a>
JavaScript
var css = $('b').css('cssText');
$('a').click(function(e) {
e.preventDefault();
$(this).css('cssText', css);
});