passing chilren step-3

main
Gerardo Marx 2 weeks ago
parent 777d55dd58
commit f2639f4fc8

@ -4,7 +4,7 @@ import Alert from "./components/Alert";
function App() {
return (
<div>
<Alert>Hello Marx</Alert>
<Alert>Hello <strong>Marx</strong></Alert>
</div>
);
}

@ -1,5 +1,7 @@
import type { ReactNode } from "react";
interface Props{
children: string;
children: ReactNode;
}
function Alert({children} : Props) {

Loading…
Cancel
Save