init
This commit is contained in:
18
src/layouts/RootLayout.tsx
Normal file
18
src/layouts/RootLayout.tsx
Normal file
@@ -0,0 +1,18 @@
|
||||
import { Link, Outlet } from 'react-router';
|
||||
|
||||
const RootLayout = () => {
|
||||
return (
|
||||
<>
|
||||
<nav>
|
||||
<Link to="/">首页</Link>
|
||||
{' | '}
|
||||
<Link to="/about">关于</Link>
|
||||
</nav>
|
||||
<main>
|
||||
<Outlet />
|
||||
</main>
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
export default RootLayout;
|
||||
Reference in New Issue
Block a user