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: https://youtu.be/bfs4tRzaoO4
2. Forms Part - 1 | HTML elements | Synthetic event: https://youtu.be/MQO-ZjbW3tk
3. Programmatically navigate | useNavigate(): https://youtu.be/u_wHZMbqlRM
Click to view the complete playlist on React JS:
https://youtube.com/playlist?list=PLBrle6N86WsSVcsnQSGZQfJJy9JKq7k-h
#reactjs#routing#useNavigate#useLocation#state#v5v6#learnreactwithme#interviewpro
Download
0 formats
No download links available.
[32] React JS | React Router V6 | Send data from one route to another|useNavigate state, useLocation | NatokHD