import React from 'react'; import { murmur3 } from 'murmurhash-js'; import { CSSTransitionGroup } from 'react-transition-group'; import styles from './CommentAnimatedEdit.css'; import PropTypes from 'prop-types'; const CommentAnimatedEdit = ({ children, body }) => { return ( {React.cloneElement(React.Children.only(children), { key: murmur3(body), })} ); }; CommentAnimatedEdit.propTypes = { children: PropTypes.node, body: PropTypes.string, }; export default CommentAnimatedEdit;