navigate between pages with nav component
This commit is contained in:
@@ -1,8 +1,24 @@
|
||||
import { Button } from '@mui/material';
|
||||
import { Link } from 'react-router-dom';
|
||||
|
||||
export default function Navbar() {
|
||||
return (
|
||||
<div className="flex-row">
|
||||
<button />
|
||||
<button />
|
||||
<Button
|
||||
variant="outlined"
|
||||
component={Link}
|
||||
to="/"
|
||||
>
|
||||
Home
|
||||
</Button>
|
||||
<Button
|
||||
variant="outlined"
|
||||
component={Link}
|
||||
to="/article"
|
||||
>
|
||||
Article
|
||||
</Button>
|
||||
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user