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