Skip to content

Instantly share code, notes, and snippets.

@nivv
Created May 23, 2015 12:34
Show Gist options
  • Save nivv/2ac77c928fbcfec79c8b to your computer and use it in GitHub Desktop.
Save nivv/2ac77c928fbcfec79c8b to your computer and use it in GitHub Desktop.
/** @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