📜  如何在反应打字稿代码示例中传递孩子

📅  最后修改于: 2022-03-11 14:48:33.238000             🧑  作者: Mango

代码示例1
type Props = {
  title: string,
  children: JSX.Element,
};
const Page = ({ title, children }: Props) => (
  

{title}

{children}
);