use-media-query hook allows to subscribe to media queries.
It receives media query as an argument and returns true
if given media query matches current state.
Hook relies on
and will always return false if api is not available (e.g. during server side rendering).
Hook takes media query as first argument and returns true if query is satisfied.
Resize browser window to trigger