Skip to content
Kiran Mantha edited this page Apr 17, 2024 · 2 revisions

Plumejs router is a scoped package that enables routing for PlumeJS applications. It uses hash-based Routing. It uses dynamic imports to chunk out route specific logic which reduces main bundle size significantly.

This package exposes:

  • registerRouterComponent function to register router-outlet component that project routes
  • Router service that helps to navigate from one page to other and to read route related info like routeParams, queryParams
  • matchPath utility function to check whether the current route matches with given route structure