Created
December 9, 2018 02:37
-
-
Save rocifier/d4c8820ce146e9531e12f2281466f984 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { Component } from 'react'; | |
const TeacherIntroductions = ({ teachers }) => ( | |
<ul className="teacher-introductions"> | |
{teachers.map((teacher, index) => { | |
return <TeacherIntroduction key={`teacher-${teacher.id}`} teacher={teacher} />; | |
})} | |
</ul> | |
) | |
const mapStateToProps = state => { | |
return state.teachers | |
} | |
export default connect(mapStateToProps)(TeacherIntroductions) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment