Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save JosephShering/5ed3002b78c4dad6e5c108d0c6a25c3a to your computer and use it in GitHub Desktop.
Save JosephShering/5ed3002b78c4dad6e5c108d0c6a25c3a 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>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