Last active
March 29, 2016 20:29
-
-
Save caoakleyii/ee1916cc3bbec33b9807bac129c9fa36 to your computer and use it in GitHub Desktop.
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, { 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