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