Created
January 2, 2017 19:18
-
-
Save Chryus/6695f94ed3eddf1576c5158410ff3de5 to your computer and use it in GitHub Desktop.
avatar child components
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function ProfilePic(props) { | |
| return ( | |
| <img src={props.imageUrl} style={{width:100, height:100}}/> | |
| ); | |
| } | |
| function ProfileName(props) { | |
| return ( | |
| <div>{props.name}</div> | |
| ); | |
| } | |
| function ProfileLink(props) { | |
| return ( | |
| <a href={'https://www.github.com/' + props.username}> | |
| {props.username} | |
| </a> | |
| ); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment