Sign in
Log inSign up

Why does react-router render previous component, when the path is added by the user in the browser tab?

Davide Polano's photo
Davide Polano
·Apr 13, 2017

I'm new to React, and I'm creating a personal project. I've created a couple of pages and everything is working fine, but if I type the URL inside the browser navigation tab, the router render the previous Component.

Imagine that you are in your.site , now changing the path from the browser tab with your.site/url or your.site/url/2 renders the component used for your.site and automatically changes the path to your.site

I think I'm missing something... any advice?

Hassle-free blogging platform that developers and teams love.
  • Docs by Hashnode
    New
  • Blogs
  • AI Markdown Editor
  • GraphQL APIs
  • Open source Starter-kit

© Hashnode 2024 — LinearBytes Inc.

Privacy PolicyTermsCode of Conduct