b79d72ce60
This PR closes #19649.
13 lines
247 B
JavaScript
13 lines
247 B
JavaScript
import Link from 'next/link'
|
|
|
|
export default function Post({ title, body, id }) {
|
|
return (
|
|
<article>
|
|
<h2>{title}</h2>
|
|
<p>{body}</p>
|
|
<Link href={`/post/${id}`}>
|
|
<a>Read more...</a>
|
|
</Link>
|
|
</article>
|
|
)
|
|
}
|