Skip to content

Instantly share code, notes, and snippets.

@usualoma
Created December 9, 2023 21:28
const Content = async () => {
const data = await fetch('https://ramen-api.dev/shops/takasagoya').then((res) => res.json())
return <div>{data.shop.name}</div>
}
return () => (
<html>
<body>
<Suspense fallback={<div>Loading...</div>}>
<Content />
</Suspense>
</body>
</html>
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment