xxxxxxxxxx
<Button
variant="outline-light"
size="sm"
onClick={() => {
window.confirm( 'Are you sure you want to delete student?', ) &&
fetch(
`http://localhost:8033/students/${student.id}`,
{
method: "DELETE",
}
).then();
navigate("/Students");
}}
className="btn "
>
{" "}
<FaUserAltSlash />
</Button>