Skip to content

Instantly share code, notes, and snippets.

@caoakleyii
Last active March 29, 2016 20:29
Show Gist options
  • Save caoakleyii/ee1916cc3bbec33b9807bac129c9fa36 to your computer and use it in GitHub Desktop.
Save caoakleyii/ee1916cc3bbec33b9807bac129c9fa36 to your computer and use it in GitHub Desktop.
import React, { Component } from 'react';
import Party from './Party.jsx';
exports default class App extends Component {
getParties() {
// get a list of the parties currently.
return [];
},
renderParties() {
return this.getParties().map((party) => (
<Party key={party._id} party={party} />
));
}
render() {
return(
<div className="container">
<header>
<h1>Parties In Queue</h1>
</header>
<ul>
{this.renderParties()}
</ul>
</div>
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment