diff --git a/.eslintrc.js b/.eslintrc.js index bcdfc4e5..b1776478 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -22,6 +22,7 @@ module.exports = { 'no-undef': 0, 'prettier/prettier': 2, // Means error 'react/react-in-jsx-scope': 'off', + 'react/prop-types': 'off', // TypeScript 에서 이미 컴포넌트의 props를 검증하기 위해 타입 체크를 제공 }, settings: { react: { diff --git a/apps/react-world/src/components/Footer.tsx b/apps/react-world/src/components/Footer.tsx new file mode 100644 index 00000000..5a8d332f --- /dev/null +++ b/apps/react-world/src/components/Footer.tsx @@ -0,0 +1,16 @@ +export const Footer: React.FC = () => { + return ( + + ); +}; diff --git a/apps/react-world/src/components/Layout.tsx b/apps/react-world/src/components/Layout.tsx new file mode 100644 index 00000000..666ec697 --- /dev/null +++ b/apps/react-world/src/components/Layout.tsx @@ -0,0 +1,15 @@ +import { PropsWithChildren } from 'react'; +import { Navbar } from '../components/NavBar'; +import { Footer } from '../components/Footer'; + +type LayoutProps = PropsWithChildren; + +export const Layout = ({ children }: LayoutProps) => { + return ( + <> + + {children} +