Add comments

This commit is contained in:
Chi Vinh Le
2017-08-18 23:37:53 +07:00
parent 4b9990e154
commit cf1c93f395
@@ -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 = {