Every parent component can pass some information to its child components by giving them props.
Like profile -> Avatar
Every parent component can pass some information to its child components by giving them props.
Like profile -> Avatar
<img className="avatar" src="https://i.imgur.com/1bX5QH6.jpg" alt="Lin Lanying" width={100} height={100} />
Good example
<img className="avatar" src="https://i.imgur.com/1bX5QH6.jpg" alt="Lin Lanying" width={100} height={100} /> );}
Good example
In this code, the Profile component isn’t passing any props to its child component, Avatar:
Since there is no argument inside the function. So there is no prop that we are passing to the child component : Avatar
NO NO I was wrong about it