use-Navigate hook in react JS | replacement for use-History hook | React JS Full Tutorial

preview_player
Показать описание
#reactjs #usenavigate #nihiratechiees

This vides Explains use Navigate hook in react JS & below topics

1, Redirection/navigation using history
2, Redirection/navigation using route value

GitHub Source code link
---------------------------------------


Join this channel to get access to perks:
Рекомендации по теме
Комментарии
Автор

We are using use params and redux, when we refresh website and then we try to go back then it directly kicks us on last tab out of website instead of -1 how we can solve that

adityakulkarni
Автор

Can I pass two parameters in this: navigate('empdetails/' + id) ? For example: navigate('empdetails/' + id + empName) . I tried this but its giving me error that routes don't match. Even though I have passed this in the App.js file. I debugged and found that only one parameter is being sent successfully but if I add another parameter it creates problem.

Please guide regarding this! I am stuck in this from past 3 days non stop

snehashukla