Skip to content

Instantly share code, notes, and snippets.

@zsherman
Created August 16, 2017 15:56
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 zsherman/84079774012a57996c88e1dbfc93bb58 to your computer and use it in GitHub Desktop.
Save zsherman/84079774012a57996c88e1dbfc93bb58 to your computer and use it in GitHub Desktop.
import React from 'react'
import { Link } from 'routes'
import Wrapper from './Wrapper'
const PostItem = ({ post }) => (
<Wrapper>
<Link route='post' params={{ slug: post.title }}>
<a>
<h3>{post.title}</h3>
<p>{post.body}</p>
</a>
</Link>
</Wrapper>
)
export default PostItem
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment