import React from 'react' import { createFragmentContainer, graphql } from 'react-relay' const BlogPostPreview = props => { return (
{props.post.title}
{props.post.content}

) } export default createFragmentContainer(BlogPostPreview, { post: graphql` fragment BlogPostPreview_post on BlogPost { id title content } ` })