Skip to content

Instantly share code, notes, and snippets.

@MicroBenz
Created December 3, 2017 16:23
Show Gist options
  • Save MicroBenz/f870fe03416808a4967d365b7b3f766e to your computer and use it in GitHub Desktop.
Save MicroBenz/f870fe03416808a4967d365b7b3f766e to your computer and use it in GitHub Desktop.
Recompose
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