Skip to content

Instantly share code, notes, and snippets.

@okonet
Last active January 8, 2016 22:15
Show Gist options
  • Save okonet/335cb6187b6f562fb796 to your computer and use it in GitHub Desktop.
Save okonet/335cb6187b6f562fb796 to your computer and use it in GitHub Desktop.
What's more _readable_ in your opinion?
<Card>
<h4 className="TaskListItem_title">
<span className="TaskListItem_icon-type">
<Icon name={iconMap[type]}/>
</span>
{title} <span className="TaskListItem_id">#{id}</span>
</h4>
<div className="TaskListItem_stats">
<p className="TaskListItem_stat-item"><Icon name="code-fork"/> {commits}</p>
<p className="TaskListItem_stat-item"><Icon name="comment"/> {comments}</p>
<p className="TaskListItem_stat-item"><Icon name="warning"/> {issues}</p>
</div>
</Card>
Card
h4.TaskListItem_title
.TaskListItem_icon-type
Icon name=iconMap[type]
= title
.TaskListItem_id= id
.TaskListItem_stats
p.TaskListItem_stat-item
Icon name="code-fork"
= commits
p.TaskListItem_stat-item
Icon name="comment"
= comments
p.TaskListItem_stat-item
Icon name="warning"
= issues
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment