import { Components, registerComponent } from 'meteor/vulcan:core'; import React, { PureComponent } from 'react'; import PropTypes from 'prop-types'; const CommentsNode = ({ comment, currentUser }) =>
{comment.childrenResults ?
{comment.childrenResults.map(comment => )}
: null }
CommentsNode.propTypes = { comment: PropTypes.object.isRequired, // the current comment }; registerComponent('CommentsNode', CommentsNode);