Skip to content

Instantly share code, notes, and snippets.

@gate5th
Created September 12, 2018 18:03
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 gate5th/fe07b26aebe090bb6fbf97ed77cf238f to your computer and use it in GitHub Desktop.
Save gate5th/fe07b26aebe090bb6fbf97ed77cf238f to your computer and use it in GitHub Desktop.
oldschoolshuffle
//Author.js
import React, { Component } from 'react';
import './Author.css';
import Avatar from '@material-ui/core/Avatar'
class Author extends Component {
render() {
return (
<div className="Author">
<Avatar alt={this.props.authorName} src={this.props.avatarImageSrc} />
<p>by {this.props.authorName}</p>
</div>
);
}
}
export default Author;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment