0

let's say we have

const Parent = () => {
return (
  <Child title="Foo" description="any things"/>
) 
}

and the child component :

const Child = ({title, description}) => {

return () {
 <div>
   <FaHome />
   <h5>{title}</h5>
   <p>{description}</p>
 </div>
}
}

that was my two components, now what I want is to pass the react icon component as prop to the child component.

0 Answers0