Skip to content

Instantly share code, notes, and snippets.

@dshook
Created January 27, 2015 18:04
Show Gist options
  • Select an option

  • Save dshook/278abfc706df9b09f238 to your computer and use it in GitHub Desktop.

Select an option

Save dshook/278abfc706df9b09f238 to your computer and use it in GitHub Desktop.
var React = require('react');
var test = React.createFactory(require('../views/test.jsx'));
module.exports = HomeActivity;
/**
* @constructor
*/
function HomeActivity($root, storage, transport)
{
this.$root = $root;
this.transport = transport;
this.storage = storage;
}
/**
* @private
*/
HomeActivity.prototype.onStart = function()
{
React.render(new test({text: 'hi there'}), this.$root[0]);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment