import { Routes, Route, Link } from 'react-router'; // The plugin's own router, mounted by the shell at `/*` — so everything below this point is the // plugin's, and react-router nests it natively. The shell knows the prefix; this file does not need to. const Home = () => (

Example plugin

Rendered from plugins/example/web/Router.tsx, compiled into the shell's bundle by the generated{' '} Plugins.gen.tsx.

A nested route →
); const Deeper = () => (

Nested

Proof the wildcard mount hands the whole subtree to the plugin.

← back
); export default function ExampleRouter() { return ( } /> } /> ); }