📜  children type typescript react' - TypeScript 代码示例

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

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

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