`pushState` adds an entry to the current document’s session history. Back navigation fires `popstate`, letting an app render the matching view.
The demo stacks route chips and moves backward. The History API does not replace page content for you; rendering and URL handling must be implemented together.
When to use
Use it to keep URLs and back navigation aligned in client-side routing.