Created
October 24, 2014 18:10
-
-
Save mikaelbr/1ed0189021ba45d0fd42 to your computer and use it in GitHub Desktop.
Example shouldComponentUpdate
This file contains 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 component = require('omniscient'); | |
var React = require('react'); | |
var someOtherMixins = require('./someMixins'); | |
var setup = { | |
componentDidMount: function () { | |
// Some setup. | |
event.on('data', console.log.bind(console))); | |
} | |
}; | |
module.exports = component([ setup, someOtherMixins ], function (cursor) { | |
return React.div.h1({}, cursor.get('title')); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment