Setup react router

This commit is contained in:
Saud Fatayerji
2023-11-03 12:06:55 +03:00
parent fcf53c3923
commit 98a19e56a4
11 changed files with 165 additions and 107 deletions

View File

@@ -0,0 +1,18 @@
import { Link } from "react-router-dom";
function NoMatch() {
/* A "layout route" is a good place to put markup you want to
share across all the pages on your site, like navigation. */
return (
<nav>
<ul>
<li><Link to="/">Home</Link></li>
<li><Link to="/about">About</Link></li>
<li><Link to="/dashboard">Dashboard</Link></li>
<li><Link to="/nothing-here">Nothing Here</Link></li>
</ul>
</nav>
);
}
export default NoMatch;