Grafana v10 is going to support using React Router v6 in plugins, and this PR is updating the App Plugin example to use the latest version of react-router. (Plugins that would like to update to use v6 will only support Grafana versions from v10 and above, no backwards compatibility).
Technical changes
Bundling the react-router@6 with the plugin (Since Grafana core still exposes v5 under the same package name, this is necessary)
🚨 This PR can only be merged-in once Grafana v10 is generally available.
Related core Grafana PR: https://github.com/grafana/grafana/pull/66921
What changed?
Grafana v10 is going to support using React Router v6 in plugins, and this PR is updating the App Plugin example to use the latest version of react-router. (Plugins that would like to update to use
v6
will only support Grafana versions from v10 and above, no backwards compatibility).Technical changes
react-router@6
with the plugin (Since Grafana core still exposes v5 under the same package name, this is necessary)<Routes>
instead of a<Switch>