JSFiddle - React, Tailwind, and code Playground
HTML
<div data-role="page" id="page1">
<div data-role="content">
<input type="text" name="input1" id="input1" data-theme="A">
</div>
</div>
JavaScript
$(document).bind('pageinit', function() {
$("#page1").bind('pageshow', function() {
$('#input1').focus();
})
});