Skip to content

Instantly share code, notes, and snippets.

@smhatre59
Created November 5, 2016 07:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save smhatre59/c8c5da7ed5ee1a4bd2752f895fc2db02 to your computer and use it in GitHub Desktop.
Save smhatre59/c8c5da7ed5ee1a4bd2752f895fc2db02 to your computer and use it in GitHub Desktop.
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