Skip to content

Latest commit

 

History

History
 
 

data-observe

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Data Change

A React mixin that makes it easy to trigger re-rendering of a component when a prop emits a change event.

Usage

var observe = require( 'lib/mixins/data-observe' );

var Component = React.createClass({
	mixins: [ observe( 'sites', 'user' ) ]
});

(Read more about React mixins.)