Комментарии:
Thanks a lot!
ОтветитьThank you! Simple! useNavigate makes it even SIMPLIER!!!
ОтветитьInglês brabo!! Ótimo video Pedrão!!!
ОтветитьuseHistory is now depracated. Of course they'd make it obsolete after I go through this whole video and test it...
Ответитьthank
ОтветитьThanks, PedroTech!
Ответитьthanks man it worked! : )
ОтветитьThank you! so helpful!
ОтветитьYou are my second react teacher. Thank u so much
Ответить.0123
Ответитьthanks you , i watched 2,3 videos and i wasnt getting it .... now i know what to do
ОтветитьPlease share the source code
Ответитьbro its not working for me will you share a code
Ответитьstop fucking wasting time with the explanation and just go.
Ответитьthx
ОтветитьSuper
Ответитьit's still not working please help
ОтветитьYeah but how can you redirect to external urls like going to facebook?
ОтветитьThis was how I thought things worked but I wasn't sure. Thanks for the clarification.
ОтветитьIt's amazing to me something as basic and central as linking to other pages loading data has so much inconsistency between the methods to achieve it and many don't work for some reason depending on how the data is structured and being fetched. The way you said you were surprised at how much of an issue this was for newcomers is very much expected to me, I'm new to React and the official docs don't go into it from what I see, while I try referencing material from the official site for React Router and it's been annoying to get working right now.
ОтветитьYes this video is very helpfull, but i had doubt bro. after filling the form can we redirect the profile page ??
ОтветитьThis short tutorial is so good
Ответитьrat hay minh da lam dc <3
Ответитьif anyone's page shows empty when you use <Route> ( <Router>
<Routes>
<Route path="/login" element={<Login/>} />
</Routes>
</Router> ) use this code and thank me later (because of Router-Dom version 6)- - - -Happy Coding everyone
You are one of the best brothers...
ОтветитьÓtimo vídeo mano, só faltou uma legenda em pt-br.
ОтветитьThanks for your vids Pedro ! You're explaining very well, you're the best !! 😁
Ответитьplease tag the react dom version ..
ОтветитьThis works well react router versión < 6, but how this would be with React router V6?
ОтветитьDude, I would give you a kiss if I could, thank you so much!!!
ОтветитьI get memory leak problem...but I can't able to solve this
Ответитьwhere can I get the code
ОтветитьVery simply put
Ответитьthis only works with functional views. how do you implement a redirect a component?
ОтветитьI think the useHistory hook is no longer available in the new react router dom version
Ответитьbro your videos are good please show how to reroute to login page if local storage is empty using latest version of react
and
Rookie question but why do I get blank pages when I refresh my app. I have to kind of restart my app or login again, to navigate within the app. But moment I refresh the page, it's blank. Is it as I haven't implemented useHistory throughout my app.
Ответитьone thing I learnt today is if your app didn't show other pages and you use in Route "component" you can use "element" hope it Works <3
Ответитьyeah none of this worked for me.
ОтветитьThis video was really helpful. I am a beginner and was very confused about this concept. Thank u
ОтветитьI'm using a component <Header /> in my router. All my routes has this Header, but I want a single Route to not have it... How can I achieve it?
ОтветитьThank you so much! This was so helpful!
Ответитьthank you so much. This really helped.
ОтветитьCara, uma pergunta.
Quando o usuário loga, e eu salvo o token dele, eu mando ele de volta para a página home, só que, o "navegador" eu acho, não entende que ele está logado entende. Eu preciso dar um F5 na página, para dai aparecer a mensagem de usuário logado na página home
Ou seja, eu preciso dar um reload na página
Já tentei usar o windown.reload no código do login, porém, não dá certo
O que eu tenho que fazer para a página Home ser realmente recarregada ?
bro you save my life it work
ОтветитьThanks man :)) i love you
ОтветитьI agree! the docs for the react-router-dom is very confusing for beginners, this video is the best way to explain the concept of redirect in the simplest way.
Ответить