I use the following lines of code to retrieve comments and relative issue association in a github clone project of the issues page:
const mapState = ({ issues