Created
August 20, 2019 14:08
-
-
Save kisildev/569fa8d1d9c570ad9b835a246b05efbf to your computer and use it in GitHub Desktop.
Render with array map
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
getUsers() { | |
const { users } = this.props; | |
if (Array.isArray(users)) { | |
return users.map((user) => { | |
return (<Participant key={user.id} userData={user} />); | |
}); | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment