Skip to content

Instantly share code, notes, and snippets.

@devonzuegel
Last active August 29, 2015 14:24
Show Gist options
  • Save devonzuegel/50672d0969bb5b996f4d to your computer and use it in GitHub Desktop.
Save devonzuegel/50672d0969bb5b996f4d to your computer and use it in GitHub Desktop.
Simplifying jsx markup
{ div, h1, h2, h3, h4, h5, h6, p, a } = React.DOM
@Entry = React.createClass
render: ->
div className: 'col-md-6 no-padding',
div className: 'entry-card',
div className: 'fade'
div null,
h2 null, @props.entry.title
p null, formatted_date(@props.entry.created_at)
p null, formatted_body(@props.entry)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment