14 lines
362 B
TypeScript
14 lines
362 B
TypeScript
import { Link, useParams } from "react-router";
|
|
|
|
export function PersonPage() {
|
|
const { id } = useParams();
|
|
|
|
return (
|
|
<div className="flex flex-col items-center justify-center min-h-[90vh]">
|
|
<p>Person Page: {id}</p>
|
|
<p>(Retrieved from the URL params)</p>
|
|
<Link to="/" className="text-blue-500 mt-10">Go to Home</Link>
|
|
</div>
|
|
);
|
|
}
|