passing children step-2
parent
4c9416b1b3
commit
777d55dd58
@ -1,10 +1,10 @@
|
|||||||
interface Props{
|
interface Props{
|
||||||
text: string;
|
children: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
function Alert({text} : Props) {
|
function Alert({children} : Props) {
|
||||||
return (
|
return (
|
||||||
<div className="alert alert-primary">{text}</div>
|
<div className="alert alert-primary">{children}</div>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue