useInRouterContext

useInRouterContext

Summary

Reference Documentation ↗

Returns true if this component is a descendant of a Router, useful to ensure a component is used within a Router.

Signature

function useInRouterContext(): boolean

Returns

Whether the component is within a Router context

Docs and examples CC 4.0
Edit
close