Added the ErrorElement to the main.jsx
This commit is contained in:
parent
2b73dc0cf3
commit
d5b17aa842
@ -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(
|
||||
|
Reference in New Issue
Block a user