nav to specific articleId via url

This commit is contained in:
2025-11-09 00:06:54 -06:00
parent bcbe9d4e2a
commit 50e102a76e
5 changed files with 33 additions and 64 deletions
+5 -1
View File
@@ -1,7 +1,11 @@
import { useParams } from 'react-router';
export default function Article() {
let { articleId } = useParams();
return (
<div id="article">
<h1>Article</h1>
<h1>Article: {articleId}</h1>
</div>
);
};
+7
View File
@@ -0,0 +1,7 @@
export default function ArticleList() {
return (
<div>
List of articles to be populated and searchable
</div>
);
};