Added the ErrorElement to the main.jsx

This commit is contained in:
Mathias Wagner 2023-06-02 17:09:01 +02:00
parent 2b73dc0cf3
commit d5b17aa842
Signed by: Mathias
GPG Key ID: B8DC354B0A1F5B44

View File

@ -11,7 +11,8 @@ const router = createBrowserRouter([{
index: route.path === '/',
path: route.path === '/' ? undefined : route.path,
element: route.component
}))
})),
errorElement: <App />
}]);
ReactDOM.createRoot(document.getElementById('root')).render(