score:4

Accepted answer
class UsersCommentsFeed {
    render() {
        return (
           {this.props.users.map(user => <SingleUserComments {...user} />)}
        )
    }
}

class SingleUserComments {
    render() {
        return (
           {this.props.comments.map(comment => <Comment {...comment} />)}
        )
    }
}

class Comment {
    render() {
        return (
            <div>
               <h2>{this.props.title}</h2>
               <p>{this.props.content}</p>
            </div>
        )
    }
}

score:0

render() {
  return (
    <div>
      <h2>Comments List</h2>
      {this.state.users.map((user, index) => <User key={index} user={user} />}
    <div>
  )
}

Related Query

More Query from same tag