Initial commit
This commit is contained in:
11
app/pages/home/HomePage.tsx
Normal file
11
app/pages/home/HomePage.tsx
Normal file
@@ -0,0 +1,11 @@
|
||||
import { Link } from "react-router";
|
||||
|
||||
export function HomePage() {
|
||||
return (
|
||||
<div className="flex flex-col items-center justify-center min-h-[90vh]">
|
||||
<p>Hello React!</p>
|
||||
|
||||
<Link to="/person/John" className="text-blue-500 mt-10">Go to Person</Link>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
13
app/pages/person/PersonPage.tsx
Normal file
13
app/pages/person/PersonPage.tsx
Normal file
@@ -0,0 +1,13 @@
|
||||
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>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user