text: import React from 'react';
  import { connect } from 'react-redux';
  
  const CommentList = (props) => {
    const list = props.comments.map((comment, index) => <li key={comment + index}>{comment}</li>);
    return(
      <ul className='comment-list'>{list}</ul>
    );
  };
  
  const mapStateToProps = (state) => ({
    comments: state.comments,
  });
  
  export default connect(mapStateToProps)(CommentList);
  