![javascript - How to detect matched route from a component outside of the < Route/> component that was matched using react-router? - Stack Overflow javascript - How to detect matched route from a component outside of the < Route/> component that was matched using react-router? - Stack Overflow](https://i.stack.imgur.com/b2Tgx.png)
javascript - How to detect matched route from a component outside of the < Route/> component that was matched using react-router? - Stack Overflow
Question] How do I get to the current route outside of a <Route/>? · Issue #4921 · remix-run/react-router · GitHub
![How to Quickly Get the Current Route in Next.js | by Coding Beauty Tutorials | Coding Beauty Tutorials | Medium How to Quickly Get the Current Route in Next.js | by Coding Beauty Tutorials | Coding Beauty Tutorials | Medium](https://miro.medium.com/v2/resize:fit:1200/1*pr6AdSOErUflLEAdCEcDQQ.png)