Breadcrumbs

Explanation

The @curi/route-ancestors package lets you know what routes are the ancestors of another route. Using this, we can build breadcrumb links.

Live Demo

Use the three buttons at the top of the Sandbox to toggle view modes. Clicking the menu button in the top left corner opens a menu to switch between files.

On GitHub

If you want to run this code locally, the source code is available on GitHub here.