에러 해결 도움 부탁드립니다.
import React from "react";
import { Menu, Input } from "antd";
const AppLayout = ({ children }) => {
return (
<div>
<Menu mode="horizontal">
<Menu.Item key="home">노드버드</Menu.Item>
<Menu.Item key="profile">프로필</Menu.Item>
<Menu.Item key="email">
<Input.Search enterButton style={{ verticalAlign: "middle" }} />
</Menu.Item>
</Menu>
{children}
</div>
);
};
export default AppLayout;
import React from "react";
import Link from "next/link";
import Head from "next/head";
import AppLayout from "../components/AppLayout";
const Home = () => {
return (
<>
<Head>
<title>NodeBird</title>
<Link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/antd/3.16.2/antd.css"
/>
</Head>
<AppLayout>
<Link href="/about">
<a>about</a>
</Link>
<div>Hello, Next!!</div>
</AppLayout>
</>
);
};
export default Home;