How to use redirect, it is not working #9898
Unanswered
wildfrontend
asked this question in
Q&A
Replies: 2 comments 2 replies
-
In your case, you can use navigate, or better, use a |
Beta Was this translation helpful? Give feedback.
2 replies
-
I tried to use This is what I tried: <Route path="/" loader={() => redirect('/dashboard')} /> This is what happened in the console:
When I write this, the console warning disappears but the page is still empty: <Route path="/" loader={() => redirect('/dashboard')} element={<div />} /> How do I write a correct redirect in a Route? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
button is cliecked , and not working, and i try
useNavigate
is worki use
createBrowserRouter
and `RouterProviderpackage.json
Beta Was this translation helpful? Give feedback.
All reactions