Forked from caoakleyii/gist:ee1916cc3bbec33b9807bac129c9fa36
Created
March 29, 2016 20:28
-
-
Save JosephShering/5ed3002b78c4dad6e5c108d0c6a25c3a to your computer and use it in GitHub Desktop.
This file contains hidden or 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>Todo List</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