JSFiddle - React, Tailwind, and code Playground

HTML

<!DOCTYPE HTML>

		<script src="https://sapui5.netweaver.ondemand.com/resources/sap-ui-core.js"
				id="sap-ui-bootstrap"
				data-sap-ui-libs="sap.ui.commons,sap.m,sap.ui.table"
				data-sap-ui-theme="sap_bluecrystal">
		</script>
		<!-- add sap.ui.table,sap.ui.ux3 and/or other libraries to 'data-sap-ui-libs' if required -->

		<script>
				sap.ui.localResources("learning");
				var view = sap.ui.view({id:"idfirst1", viewName:"learning.first", type:sap.ui.core.mvc.ViewType.JS});
				view.placeAt("content");
		</script>

	</head>
	<body class="sapUiBody" role="application">
		<div id="content"></div>
	</body>
</html>

JavaScript

var dialogbutton = new sap.m.Button({
			text : "press here",
			press : function(e){
			var dialog =	new sap.m.Dialog({
					content : [form]
				})
			dialog.open();
			}
		})
		
		var flexbox = new sap.m.VBox({
			items : [new sap.m.Label({text : "Name"}),
			         new sap.m.Text ({text : "SAP"})]
		})
		var form = new sap.ui.layout.form.SimpleForm({
			content:[flexbox]
		})
		
	dialogbutton.placeAt("content")