Skip to content

Latest commit

 

History

History
32 lines (18 loc) · 484 Bytes

useMatch.md

File metadata and controls

32 lines (18 loc) · 484 Bytes
title
useMatch

useMatch

[MODES: framework, data, declarative]

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

[modes: framework, data, declarative]

No documentation