Remove transferPropsTo

I'd like to outlaw prop mutation altogether, and now seems like a fine time to remove transferPropsTo.

Test Plan: jest
This commit is contained in:
Ben Alpert
2014-11-16 17:41:07 -08:00
parent f391b7b3ca
commit c96ea9abf2
7 changed files with 22 additions and 255 deletions
+2 -2
View File
@@ -25,8 +25,8 @@ var CHILDREN_PROP = keyOf({children: null});
* this is to add a CSS class.
*
* @param {object} child child component you'd like to clone
* @param {object} props props you'd like to modify. They will be merged
* as if you used `transferPropsTo()`.
* @param {object} props props you'd like to modify. className and style will be
* merged automatically.
* @return {object} a clone of child with props merged in.
*/
function cloneWithProps(child, props) {