nav to specific articleId via url
This commit is contained in:
@@ -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>
|
||||
);
|
||||
};
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
export default function ArticleList() {
|
||||
return (
|
||||
<div>
|
||||
List of articles to be populated and searchable
|
||||
</div>
|
||||
);
|
||||
};
|
||||
Reference in New Issue
Block a user