Created
December 3, 2017 16:23
-
-
Save MicroBenz/f870fe03416808a4967d365b7b3f766e to your computer and use it in GitHub Desktop.
Recompose
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 from 'react'; | |
const Campers = props => { | |
const { campers = [] } = props; | |
return ( | |
<div> | |
<CamperTable lists={campers.filter(camper => camper.role === 'design')} /> | |
<CamperTable lists={campers.filter(camper => camper.role === 'marketing')} /> | |
<CamperTable lists={campers.filter(camper => camper.role === 'programming')} /> | |
<CamperTable lists={campers.filter(camper => camper.role === 'content')} /> | |
</div> | |
); | |
}; | |
export default Campers; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment