Created
January 27, 2015 18:04
-
-
Save dshook/278abfc706df9b09f238 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
| 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