Skip to content

Instantly share code, notes, and snippets.

@dance2die
Created June 2, 2018 15:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dance2die/56d863a786182fc7a853084d5005a159 to your computer and use it in GitHub Desktop.
Save dance2die/56d863a786182fc7a853084d5005a159 to your computer and use it in GitHub Desktop.
const storiesComponents = stories
...
return (
<Story key={node.id}>
<Rank>{rank}</Rank>
<Content>
<Body>
<TitleLink href={titleUrl}>{title}</TitleLink>
{host ? <HostLink href={`//${host}`}>({host})</HostLink> : null}
</Body>
<Meta>
{score} points by {by} [<Time date={date} />]
<HostLink href={`${commentLink}`}>[comments]</HostLink>
</Meta>
</Content>
</Story>
)
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment