From 478e0efd4390c6a629cf27e5ad97b4ca93b72734 Mon Sep 17 00:00:00 2001 From: CT Wu Date: Thu, 6 Oct 2016 01:24:54 +0800 Subject: [PATCH] Fix react-unknown-prop warning in the tweet example (#620) * Fix react-unknown-prop warning in the tweet example Ref: [https://facebook.github.io/react/warnings/unknown-prop.html]() * Add data-offset-key --- examples/tweet/tweet.html | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/examples/tweet/tweet.html b/examples/tweet/tweet.html index d8f265af9d..e3d17bd705 100644 --- a/examples/tweet/tweet.html +++ b/examples/tweet/tweet.html @@ -102,11 +102,25 @@ } const HandleSpan = (props) => { - return {props.children}; + return ( + + {props.children} + + ); }; const HashtagSpan = (props) => { - return {props.children}; + return ( + + {props.children} + + ); }; const styles = {