Skip to content

Instantly share code, notes, and snippets.

@MoritzStefaner
Last active August 29, 2015 14:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MoritzStefaner/c279dccce26cb2098de6 to your computer and use it in GitHub Desktop.
Save MoritzStefaner/c279dccce26cb2098de6 to your computer and use it in GitHub Desktop.
{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