mirror of
https://gitea.gofwd.group/dstrawsb/ballistic-builder.git
synced 2025-12-06 02:36:44 -05:00
work and created develop branch
This commit is contained in:
11
Example Code/fetchData.tsx
Normal file
11
Example Code/fetchData.tsx
Normal file
@@ -0,0 +1,11 @@
|
||||
export default async function Page() {
|
||||
let data = await fetch('https://api.vercel.app/blog')
|
||||
let posts = await data.json()
|
||||
return (
|
||||
<ul>
|
||||
{posts.map((post) => (
|
||||
<li key={post.id}>{post.title}</li>
|
||||
))}
|
||||
</ul>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user