Client Routing

Client(-side) Routing denotes the practice of implementing page navigation on the client-side: when the user navigates to a new page, instead of discarding the current page and requesting the HTML of the new page, the client preserves the current page and renders the new page by manipulating the DOM of the page.

Client Routing enables:

  • Faster page navigation.
  • Client-side state preserved across navigation.
  • Custom page transition animations.

We further discuss these use cases at Routing > Server Routing VS Client Routing > Which one to Choose.

To achieve Client Routing we use useClientRouter().

See also: