JSFiddle - React, Tailwind, and code Playground
HTML
<h3>Patient Details:</h3>
<div>Patient Id:
<input id="patientID" />
<br/>Patient Name:
<input id="patientName" />
<br/>
<input type="button" value="read " onClick="doGet()" />
<input type="button" value="add" onClick="doPost()" />
<input type="button" value="delete " onClick="doDelete()" />
<input type="button" value="update " onClick="doPut()" />
</div>