This video gives detailed explanation on how react-router-dom V6 allows to send data while navigating from one route to another using useNavigate() hook in combination with useLocation hook.
I would recommend going through below mentioned videos to better understand the concept:
1. useState() hook: • [8] React JS | Hooks | useState
2. Forms Part - 1 | HTML elements | Synthetic event: • [13] React JS | Forms Part - 1 | HTML...
3. Programmatically navigate | useNavigate(): • [31] React JS | React Router V6 | Pro...
Click to view the complete playlist on React JS:
• REACT JS
#reactjs#routing#useNavigate#useLocation#state#v5v6#learnreactwithme#interviewpro