Home

Awesome

React Coffee Elements Build Status

Simplifies writing React DOM elements when using CoffeeScript. Instead of writing:

React = require 'react'

{div, h1, p} = React.DOM


div {},
  h1 {}, 'My great page'
  p {className: 'my-class'}, 'My awesome content'

One now can skip the empty option objects and just write:


{div, h1, p} = require 'react-coffee-elements'


div(
  h1 'My great page'
  p className: 'my-class', 'My awesome content'
)