useMediaQuery
Specification
Returns a boolean verdict whether device matches the given media query Object.
Definition
Please see the Breakpoints page for the Breakpoint
type reference:
Example
Using initial match
The hook resolves to false
upon initial render. To change that behavior pass the initial value as the second argument to the hook:
Last updated