📜  反应儿童打字稿代码示例

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

代码示例5
import React, { ReactChildren, ReactChild } from 'react';
 
interface AuxProps {
  children: ReactChild | ReactChildren;
}

const Aux = ({ children }: AuxProps) => (
{children}
); export default Aux;