Unverified Commit c3293b73 authored by Vitor Dino's avatar Vitor Dino Committed by GitHub

Fix docs about the return of getStaticProps on basic-features/pages (#19267)

parent b955268d
...@@ -124,7 +124,7 @@ export async function getStaticProps() { ...@@ -124,7 +124,7 @@ export async function getStaticProps() {
const res = await fetch('https://.../posts') const res = await fetch('https://.../posts')
const posts = await res.json() const posts = await res.json()
// By returning { props: posts }, the Blog component // By returning { props: { posts } }, the Blog component
// will receive `posts` as a prop at build time // will receive `posts` as a prop at build time
return { return {
props: { props: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment