You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

21 lines
639 B

import React from "react";
import { useEffect, useState } from "react";
import { Link, useParams } from "react-router-dom";
import "./Index.css";
const Patient = () => {
let params = useParams();
const [patient, setPatient] = useState(null)
useEffect(() => {
fetch(`/api/connections/${params.connId}/${params.serviceId}/${params.patientId}`).then(x => x.text()).then(x => setPatient(x) )
}, [])
return (
<div>
<h1 className="t-page-header">Patiënt</h1>
{patient ? <div dangerouslySetInnerHTML={{__html: patient}}></div> : null}
</div>
);
};
export default Patient;