Pre-deployment
This commit is contained in:
16
web/src/components/BlogPost/BlogPost.js
Normal file
16
web/src/components/BlogPost/BlogPost.js
Normal file
@@ -0,0 +1,16 @@
|
||||
import { Link,routes } from '@redwoodjs/router'
|
||||
|
||||
const BlogPost = ({ post }) => {
|
||||
return (
|
||||
<article>
|
||||
<header>
|
||||
<h2>
|
||||
<Link to={routes.blogPost({ id: post.id })}>{post.title}</Link>
|
||||
</h2>
|
||||
</header>
|
||||
<div>{post.body}</div>
|
||||
</article>
|
||||
)
|
||||
}
|
||||
|
||||
export default BlogPost
|
||||
Reference in New Issue
Block a user