JSFiddle - React, Tailwind, and code Playground

HTML

<!DOCTYPE html>
<html>
<head>
	<title>Test</title>
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<link rel="stylesheet" href="http://code.jquery.com/mobile/1.2.0/jquery.mobile-1.2.0.min.css" />
	<script src="http://code.jquery.com/jquery-1.8.2.min.js"></script>
	<script src="http://code.jquery.com/mobile/1.2.0/jquery.mobile-1.2.0.min.js"></script>
	<style>
	
	</style>
	<script>
		$(document).on("pageinit", "#page1", function(){
			
			//create a button2
			$("div#button2").button();
			//set a handler for a button2
		    $("div#button2").click(function(){
		        alert("I have been clicked");
		    });
			
			$("button#button1").click(function(){
				var caption = $("#name").val();
        //$("div#button2").text(caption).button("refresh");
			});
			
		});
	</script>
</head>
<body>
	<div data-role="page" id="page1">
		<div data-role="header">
			<h1>Header</h1>
		</div>

		<div data-role="content">
			<label for="name">Enter a new caption for the button</label>
			<input type="text" name="name" id="name" value="Hello World">
			<button id="button1" data-inline="true">Change</button>
			
	        <div id="button2">My Button 2</div>
			
		</div>


		<div data-role="footer" data-position="fixed">
			<h1>Footer</h1>
		</div>
	</div>
</body>
</html>