The media query string to match (e.g., "(min-width: 768px)").
Returns boolean
true if the media query matches, false otherwise.
Remarks
This hook uses window.matchMedia to listen for changes to the specified media query.
It uses useSyncExternalStore to ensure concurrent rendering compatibility.
Tracks the state of a media query.