Skip to content

Instantly share code, notes, and snippets.

@gate5th gate5th/Author.js
Created Sep 12, 2018

Embed
What would you like to do?
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
You can’t perform that action at this time.