Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
// props that will be used for ContactList component.
interface IContactListProps {
contacts: IContact[]
// ContactList component
class ContactList extends React.Component<IContactListProps, any> {
// create <li><p></p></li> for each contact
renderContacts() {
return => {
return <li><p>{contact.firstName} {contact.lastName}</p></li>
// render the contacts
render () {
return <ul>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.