강의

멘토링

커뮤니티

Inflearn Community Q&A

i1004gy4926's profile image
i1004gy4926

asked

[Renewal] Creating a NodeBird SNS with React

_app.js and Head

antd 5버전 부터는 css import가 필요 없는거 같습니다

Resolved

Written on

·

889

3

import React from "react";
import PropTypes from "prop-types";
import Link from "next/link";
import { Menu } from "antd";

const AppLayout = ({ children }) => {
  return (
    <div>
      <Menu mode="horizontal">
        <Menu.Item>
          <Link href="/">노드버드</Link>
        </Menu.Item>

        <Menu.Item>
          <Link href="/profile">프로필</Link>
        </Menu.Item>
        <Menu.Item>
          <Link href="/signup" legacyBehavior>
            <a>회원가입</a>
          </Link>
        </Menu.Item>
      </Menu>
      {children}
    </div>
  );
};

AppLayout.propTypes = {
  children: PropTypes.node.isRequired,
};

export default AppLayout;

이렇게만 해도 디자인 잘 적용 됩니다!

reactreduxnode.jsexpressnext.js

Answer 1

0

zerocho님의 프로필 이미지
zerocho
Instructor

공유 감사합니다

i1004gy4926's profile image
i1004gy4926

asked

Ask a question