In my react application, i have three component which are called like this.
"APP -> Card -> Avatar". the code seems working. but, when i go to react dev tool tab in browser(components), only App and Card component is available. Avatar component is doesn't show up.
Attaching the details.
App component..
<Card
name={"Beyonce"}
imgURL={"119.jpg"}
phone={"+123 456 789"}
email={"b@beyonce.com"}
/>
Card component...
<div className="top">
<h2 className="name">{props.name}</h2>
<Avatar source={props.imgURL} />
</div>
<div className="bottom">
<p className="info">{props.phone}</p>
<p className="info">{props.email}</p>
</div>
Avatar component ..
function Avatar(props){
return(
<img className="circle-img" src={props.source} alt="avatar_img" />
);
}
export default Avatar;
` after `