feat: add ErrorBoundary component for improved error handling

This commit is contained in:
codytseng
2025-08-30 13:53:58 +08:00
parent 9759e3e750
commit 905ef99e0e
2 changed files with 82 additions and 1 deletions

View File

@@ -6,9 +6,12 @@ import './services/lightning.service'
import { StrictMode } from 'react'
import { createRoot } from 'react-dom/client'
import App from './App.tsx'
import { ErrorBoundary } from './components/ErrorBoundary.tsx'
createRoot(document.getElementById('root')!).render(
<StrictMode>
<App />
<ErrorBoundary>
<App />
</ErrorBoundary>
</StrictMode>
)