Skip to content

Instantly share code, notes, and snippets.

@alexandargyurov
Created June 8, 2020 18:30
Show Gist options
  • Select an option

  • Save alexandargyurov/83227b84b67fbdd07395fc3d793c5b21 to your computer and use it in GitHub Desktop.

Select an option

Save alexandargyurov/83227b84b67fbdd07395fc3d793c5b21 to your computer and use it in GitHub Desktop.
function Article(props) {
return (
<div style={{ backgroundColor: '#b0ffc0', borderRadius: 8, padding: 12, margin: 12, width: 'max-content' }}>
<a href={props.link} style={{ textDecoration: 'none' }}>
<h1>{props.title}</h1>
<p>{props.description}</p>
<p>{props.date}</p>
</a>
</div>
)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment