Last active
August 29, 2015 14:21
-
-
Save MoritzStefaner/c279dccce26cb2098de6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{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