Skip to content

Commit

Permalink
fix the Unexpected token h1 error in jsx (#118)
Browse files Browse the repository at this point in the history
  • Loading branch information
officialrajdeepsingh committed Aug 4, 2023
1 parent ed8851a commit 7a19f26
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/web/outstatic/content/docs/fetching-data.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ import { getDocuments } from 'outstatic/server'

export default async function Index() {
const posts = await getData()
return posts.map((post) => <h1>{post.title}</h1)
return posts.map((post) => <h1>{post.title}</h1>)
}

async function getData() {
Expand All @@ -51,7 +51,7 @@ async function getData() {
import { getDocuments } from 'outstatic/server'

export default function Index({ posts }) {
return posts.map((post) => <h1>{post.title}</h1)
return posts.map((post) => <h1>{post.title}</h1>)
}

export const getStaticProps = async () => {
Expand Down

2 comments on commit 7a19f26

@vercel
Copy link

@vercel vercel bot commented on 7a19f26 Aug 4, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 7a19f26 Aug 4, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

outstatic-dev-blog – ./apps/dev

outstatic-dev-blog-git-main-andrevitorio.vercel.app
outstatic-dev-blog.vercel.app
outstatic-dev-blog-andrevitorio.vercel.app

Please sign in to comment.