No Description

CommentList.tsx 364B

123456789101112131415161718192021
  1. import React, { PureComponent } from 'react'
  2. import CommentItem, { CommentItemData } from './CommentItem'
  3. interface IP {
  4. list: Array<CommentItemData>
  5. }
  6. interface IS {
  7. }
  8. export default class CommentList extends PureComponent<IP, IS> {
  9. render() {
  10. return (
  11. <div>
  12. {this.props.list.map(i => <CommentItem data={i} />)}
  13. </div>
  14. )
  15. }
  16. }