Children
import React from 'react';
interface BoasVindasProps {
nome: string;
children: React.ReactNode;
}
function BoasVindas(props: BoasVindasProps) {
return (
<div>
<h3>Olá, seja bem vindo {props.nome}!</h3>
{props.children} {/* Filhos */}
</div>
)
}
export default BoasVindas
Last updated