Created
November 5, 2016 07:32
-
-
Save smhatre59/c8c5da7ed5ee1a4bd2752f895fc2db02 to your computer and use it in GitHub Desktop.
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
import React from "react"; | |
import ReactDOM from "react-dom" | |
export default class User extends React.Component{ | |
render(){ | |
// console.log("userprops",this.props); | |
return ( | |
<div> | |
<img src={this.props.avatar} className="avatar"/> | |
<div className="username"> | |
{this.props.firstname} {this.props.lastname} | |
</div> | |
</div> | |
) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment