From 226cd6c4302bb17cb8f516a543ae453e42a7de28 Mon Sep 17 00:00:00 2001 From: "Rico Sta. Cruz" Date: Wed, 25 Feb 2015 17:59:56 +0800 Subject: [PATCH] Update transferPropsTo with spread operator --- react.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/react.md b/react.md index c42a7d5ab..22f256bed 100644 --- a/react.md +++ b/react.md @@ -141,14 +141,14 @@ layout: default ### Propagating properties to children - var CheckLink = React.createClass({ + var VideoPlayer = React.createClass({ render: function() { - // transferPropsTo() will take any props passed to CheckLink - // and copy them to - return this.transferPropsTo({'√ '}{this.props.children}); + return ; } }); + + ### Mixins var TickTock = React.createClass({