facebook/react — pull request #435 by SanderSpies (2013-10-18 03:59:44+00:00)
Title: Add support for data={object}

Turns:

var obj = {x:1, t:function(){ return "2"; }};

<p data={obj}/>

into:

<p data-x="1" data-t="2" />

Possible improvement areas:
- call function with additional parameters (like propTypes)
- add invariant tests
- add support for attributes besides data