mirror of
https://github.com/zebrajr/react.git
synced 2025-12-06 12:20:20 +01:00
16 lines
308 B
JavaScript
16 lines
308 B
JavaScript
var React = require('react/addons');
|
|
|
|
var Foo = 'Foo';
|
|
|
|
var MyComponent = React.createClass({
|
|
shouldComponentUpdate: function(nextProps, nextState) {
|
|
return React.addons.shallowCompare(this, nextProps, nextState);
|
|
},
|
|
|
|
render: function() {
|
|
return <div />;
|
|
}
|
|
});
|
|
|
|
module.exports = MyComponent;
|