Created
May 23, 2015 12:34
-
-
Save nivv/2ac77c928fbcfec79c8b 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
/** @jsx React.DOM */ | |
var React = require('react/addons'); | |
var Timer = React.createFactory(require('./Timer.js').Timer); | |
var ReactApp = React.createClass({ | |
componentDidMount: function () { | |
console.log(fakeData); | |
}, | |
render: function () { | |
return ( | |
<div id="table-area"> | |
<Timer /> | |
</div> | |
) | |
} | |
}); | |
/* Module.exports instead of normal dom mounting */ | |
module.exports.ReactApp = ReactApp; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment