From 51c613e036d6b34208784e5977e421c1bf4f1424 Mon Sep 17 00:00:00 2001 From: Kenneth Lum Date: Thu, 11 Mar 2021 23:58:26 -0800 Subject: [PATCH] it is props: { posts } changing `props: posts` to `props: { posts }` --- docs/basic-features/data-fetching.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/basic-features/data-fetching.md b/docs/basic-features/data-fetching.md index f82f7cac5e110..22573c728838e 100644 --- a/docs/basic-features/data-fetching.md +++ b/docs/basic-features/data-fetching.md @@ -156,7 +156,7 @@ export async function getStaticProps() { const res = await fetch('https://.../posts') 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 return { props: { @@ -325,7 +325,7 @@ export async function getStaticProps() { content: fileContents, } }) - // By returning { props: posts }, the Blog component + // By returning { props: { posts } }, the Blog component // will receive `posts` as a prop at build time return { props: {