In React Router, we use a hook useNavigate()
to programmatically navigate to various pages of our website.
For example, our website has 3 components Home, New, Recommended
.
Now, let's say I navigated from Home
to New
and then from New
to Recommended
.
Now, if I call the hook navigate(-1)
, it will navigate me to New
section.
My question is, where is this history stored in the browser? And, where can I see this history in chromes inspect developer tools?