Skip to content

Commit 895417a

Browse files
Fix typo in name of Post React component in API tutorial (#890)
* Fix typo in name of Post React component in API tutorial The `post.js` file should return a `Post` React component. * Update products/pages/src/content/tutorials/build-an-api-with-workers/index.md Co-authored-by: Kate Tungusova <[email protected]>
1 parent 509a6c6 commit 895417a

File tree

1 file changed

+3
-3
lines changed
  • products/pages/src/content/tutorials/build-an-api-with-workers

1 file changed

+3
-3
lines changed

products/pages/src/content/tutorials/build-an-api-with-workers/index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ filename: "src/components/post.js"
359359
import React, { useEffect, useState } from "react";
360360
import { Link } from "@reach/router";
361361

362-
const Posts = ({ id }) => {
362+
const Post = ({ id }) => {
363363
const [post, setPost] = useState({});
364364

365365
useEffect(() => {
@@ -390,7 +390,7 @@ const Posts = ({ id }) => {
390390
);
391391
};
392392

393-
export default Posts;
393+
export default Post;
394394
```
395395

396396
### Publishing with Cloudflare Pages
@@ -431,4 +431,4 @@ In this tutorial, you built a full blog application by combining a frontend depl
431431

432432
If you enjoyed this tutorial, check out our [headless CMS tutorial].
433433

434-
[headless CMS tutorial]:https://developers.cloudflare.com/pages/tutorials/build-a-blog-using-nuxt-and-sanity
434+
[headless CMS tutorial]:https://developers.cloudflare.com/pages/tutorials/build-a-blog-using-nuxt-and-sanity

0 commit comments

Comments
 (0)