How to change header/footer when using defaultNotFoundComponent
hello there.
I have a question about developing 404 page.
There is a defaultNotFoundComponent in router.tsx as attached image.
So, I created 404 page component and added to it.
But also, I need to change header and footer when the user is authenticated and not authenticated.
In this case, is it standard to add authentication function in router.tsx? or 404 page component itself?

0 Replies