Created
June 18, 2020 16:47
-
-
Save jamiejohnsonkc/9a1123014cd9649f7dae715379f73605 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 MyLink from "../base/MyLink" | |
| class LinkList extends Component { | |
| render() { | |
| const linksToRender = [ | |
| { | |
| id: "1", | |
| description: "Prisma turns your database into a GraphQL API 😎", | |
| url: "https://www.prismagraphql.com", | |
| }, | |
| { | |
| id: "2", | |
| description: "The best GraphQL client", | |
| url: "https://www.apollographql.com/docs/react/", | |
| }, | |
| ] | |
| return ( | |
| <div> | |
| {linksToRender.map((link) => ( | |
| <MyLink key={link.id} link={link} /> | |
| ))} | |
| </div> | |
| ) | |
| } | |
| } | |
| export default LinkList |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment