JSFiddle - React, Tailwind, and code Playground

HTML

<!-- Start of first page -->
<div data-role="page" id="index">
	<div role="main" class="ui-content" id="index-content">
		<a href="#" class="ui-btn">New Game</a>
		<a href="#" class="ui-btn">Load Game</a>
		<a href="#" class="ui-btn">Best Scores</a>
	</div><!-- /content -->
</div><!-- /page -->




<!-- external header and footer -->
<div data-role="header" data-position="fixed"><h1>SQUARE</h1></div><!-- /header -->
<div data-role="footer" data-position="fixed"><h4>Page Footer</h4></div><!-- /footer -->

JavaScript

$(function(){
    $( "[data-role='header'], [data-role='footer']" ).toolbar();
});

$(document).on('pageshow','#index', function(e,data){   
    $('#index-content').css('margin-top',($(window).height() - $('[data-role=header]').height() - $('[data-role=footer]').height() - $('#index-content').outerHeight())/2);
});