hiii want to know how can i get the the state which we pass in the navigate({to: url , state :{x})
how can useLocation this to get the state which i have pass in the useNavigate
1 Reply
environmental-rose•2y ago
Generally, the easiest way to get access to the current route is: