Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
{a, ul, ol, li, div, img, h2, h3, form, input, button} = React.DOM
Component = (o) -> React.createFactory React.createClass o
app = undefined
$ ->
app = React.render App({}), $("#app")[0]
App = Component(
getInitialState: ->
{
items: []
}
render: ->
div(
# subcomponents go here…
)
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment