nav to specific articleId via url

This commit is contained in:
RoyDumblauskas committed 2025-11-09 00:06:54 -06:00
1 parent bcbe9d4e2a
commit 50e102a76e
5 files changed
+33 -64

No files matched your search

+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>
);
};