-
-
Save zsherman/84079774012a57996c88e1dbfc93bb58 to your computer and use it in GitHub Desktop.
This file contains 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 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