Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
import React, { Component } from 'react';
import './FeaturedPost.css';
import Typography from '@material-ui/core/Typography';
import Paper from '@material-ui/core/Paper';
import Author from './Author';
import * as SpotifyFunctions from '../spotifyFunctions.js'
class FeaturedPost extends Component {
return {__html: htmlString}
render() {
return (
<div className="FeaturedPost">
<Typography variant="headline" component="h3">
<Author authorName={} avatarImageSrc={}/>
<div className="content" dangerouslySetInnerHTML={this.createMarkup(}>
<button className="playArtist" onClick={(e) => {SpotifyFunctions.playArtistDiscography(,}}>Play Discography</button>
export default FeaturedPost;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment