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() { function App() {
return ( return (
<div> <div>
<Alert>Hello Marx</Alert> <Alert>Hello <strong>Marx</strong></Alert>
</div> </div>
); );
} }

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

Loading…
Cancel
Save