useMatch
On this page

useMatch

Summary

Reference Documentation ↗

Returns a PathMatch object if the given pattern matches the current URL. This is useful for components that need to know "active" state, e.g. <NavLink>.

Signature

useMatch(pattern): undefined

Params

pattern

No documentation

Docs and examples CC 4.0