JSFiddle - React, Tailwind, and code Playground
HTML
<a href="http://www.google.com" id="openApp">redirect</a>
JavaScript
$(document).ready(function () {
//this shows up.
$('#openApp')[0].click(); //this button is not clicked.
});