Reference Documentation ↗
Returns true if this component is a descendant of a Router, useful to ensure a component is used within a Router.
true
Router
function useInRouterContext(): boolean
Whether the component is within a Router context