réagir les enfants dactylographiés
interface Props {
children: JSX.Element[] | JSX.Element
}
Salo Hopeless
interface Props {
children: JSX.Element[] | JSX.Element
}
interface Props {
children: React.ReactNode;
}
interface AuxProps {
children: ReactChild | ReactChild[] | ReactChildren | ReactChildren[];
}
import React, { ReactChildren, ReactChild } from 'react';
interface AuxProps {
children: ReactChild | ReactChildren;
}
const Aux = ({ children }: AuxProps) => (<div>{children}</div>);
export default Aux;