After fetching the JSON, set the hospitalAdmin to a State.
// response is the JSON that you Fetched
setAdmins(response.hospitalAdmin);
After that, you can just Map over the Array of Admins in the return/render of your Component, like so:
const AdminTable = () => {
const [admins, setAdmins] = useState([]);
// Code for Fetching Data
return (
<table>
{ admins.map((item) => (
<tr>
<td>{item.id}</td>
...
</tr>
)
}
</table>
);
}