Last active
August 29, 2015 14:18
-
-
Save Chadtech/384f939acaddff5ca1b5 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
React = require 'react' | |
# DOM Elements | |
{p, div, input} = React.DOM | |
module.exports = | |
Column: (content) -> | |
div className: 'column', | |
content | |
Point: (content) -> | |
p | |
className: 'point' | |
content |
This file contains hidden or 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
React = require 'react' | |
# DOM Elements | |
{p, div, input} = React.DOM | |
{Column, Point} = require './components.coffee' | |
IndexClass = React.createClass | |
getInitialState: -> | |
null | |
render: -> | |
div null, | |
div className: 'spacer' | |
div className: 'indent', | |
div className: 'container', | |
div className: 'row', | |
Column | |
Point | |
'Ye Dank Memes m80' | |
div className: 'spacer' | |
IndexPage = React.createFactory IndexClass | |
App = new IndexPage | |
element = document.getElementById 'content' | |
React.render App, element |
This file contains hidden or 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
React = require 'react' | |
# DOM Elements | |
{p, div, input} = React.DOM | |
IndexClass = React.createClass | |
getInitialState: -> | |
null | |
render: -> | |
div null, | |
div className: 'spacer' | |
div className: 'indent', | |
div className: 'container', | |
div className: 'row', | |
div className: 'column', | |
p | |
className: 'point' | |
'Ye Dank Memes m80' | |
div className: 'spacer' | |
IndexPage = React.createFactory IndexClass | |
App = new IndexPage | |
element = document.getElementById 'content' | |
React.render App, element |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment