Client-Side Routing in LWR on Node.js

You can use client-side routing (CSR) in LWR on Node.js for sophisticated control over your web application's routing and navigation behavior.

  • To learn the essential concepts, architecture, and steps for using CSR, start on this page: Routers and Route Matching.
  • Ready to Create a Router? This page outlines how to use the createRouter() API and the Router Module Provider.
  • The Simple LWR Client-Side Routing example shows the process of creating a single-page LWR application (SPA) with client-side routing.
  • For details about the APIs, interfaces, wires, and Lightning web components that support LWR's client-side routing, visit the LWR Client-Side Routing Reference.