From cf1c93f395411d71eb56c9d1ecb1e3e031a81864 Mon Sep 17 00:00:00 2001 From: Chi Vinh Le Date: Fri, 18 Aug 2017 23:37:53 +0700 Subject: [PATCH] Add comments --- client/coral-embed-stream/src/containers/Comment.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/client/coral-embed-stream/src/containers/Comment.js b/client/coral-embed-stream/src/containers/Comment.js index 5f3ee0c9d..005a24ae1 100644 --- a/client/coral-embed-stream/src/containers/Comment.js +++ b/client/coral-embed-stream/src/containers/Comment.js @@ -18,6 +18,12 @@ const slots = [ 'commentAvatar' ]; +/** + * withAnimateEnter is a HOC that passes a property `animateEnter` to the + * underlying BaseComponent. It must be a direct child of a `TransitionGroup` + * from https://github.com/reactjs/react-transition-group and as such must + * be the uppermost HOC applied to the BaseComponent. + */ const withAnimateEnter = hoistStatics((BaseComponent) => { class WithAnimateEnter extends React.Component { state = {