//Layouts.tsx
interface LayoutProps {
children?: React.ReactNode;
item?: any;
}
export const ContentsLayout: React.FC<LayoutProps> = ({ item }) => {
return (
<>
...
<h1>{item.name}</h1>
...
</>
);
};
//Layouts.tsx
interface LayoutProps {
children?: React.ReactNode;
item?: any;
}
export const ContentsLayout = ({ item }: LayoutProps) => {
return (
<>
...
<h1>{item.name}</h1>
...
</>
);
};
🟥 Parameter 'X' implicitly has an 'any' type in TypeScript.
//MenuBar.tsx
{itemList.map((el, idx)=>(
<div>메뉴</div>))}
=>
{itemList.map((el:any, idx:any)=>(
<div>메뉴</div>))}