A React mixin that makes it easy to trigger re-rendering of a component when a prop
emits a change
event.
var observe = require( 'lib/mixins/data-observe' );
var Component = React.createClass({
mixins: [ observe( 'sites', 'user' ) ]
});
Name | Name | Last commit date | ||
---|---|---|---|---|
parent directory.. | ||||
A React mixin that makes it easy to trigger re-rendering of a component when a prop
emits a change
event.
var observe = require( 'lib/mixins/data-observe' );
var Component = React.createClass({
mixins: [ observe( 'sites', 'user' ) ]
});