Skip to content

Instantly share code, notes, and snippets.

@cmilfont
Created March 8, 2017 11:10
Show Gist options
  • Save cmilfont/52026518d75b846c56d335ccbc484280 to your computer and use it in GitHub Desktop.
Save cmilfont/52026518d75b846c56d335ccbc484280 to your computer and use it in GitHub Desktop.
const CustomerRow = ({ customer: { name, email } }) => (
<div className="ustomers-grid__row">
<div className="ustomers-grid__row-name">{name}</div>
<div className="ustomers-grid__row-email">{email}</div>
</div>
);
const Customers = ({ customers }) => {
const list = customers.map(customer => (<CustomerRow customer={customer} />);
return (
<div className="customers-grid">
<Toolbar />
<Grid rows={list} />
</div>
);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment