/Wiki/sources/honojs__hono/2026/https-hono-dev-llms-full-txt-errorboundary-ef5392b6b0cd-errorboundary-s0025-c0001.md
ErrorBoundary (2) - hono-docs
ErrorBoundary (2) Source evidence: /Sources/raw/honojs hono/honojs hono.md Canonical citation: https://hono.dev/llms full.txt errorboundary Summary Content
ErrorBoundary (2)
Source evidence: /Sources/raw/honojshono/honojshono.md Canonical citation: https://hono.dev/llms-full.txt#errorboundary
Summary
## Content
```tsx
async function AsyncComponent() {
await new Promise((resolve) => setTimeout(resolve, 2000))
throw new Error('Error')
return <div>Hello</div>
}
app.get('/with-suspense', async (c) => {
return c.html(
<html>
<body>
<ErrorBoundary fallback={<div>Out of Service</div>}>
<Suspense fallback={<div>Loading...</div>}>
<AsyncComponent />
</Suspense>
</ErrorBoundary>
</body>
</html>
)
})