Can be used to render code conditionally based on window width.
Not every brand/project uses the same responsive breakpoints, so the
thresholds are overridable - pass a partial BreakpointThresholds to
change just the ones that differ from the defaults (BreakpointDefinitionValue,
still exported for reference). Calling useBreakpoint() with no arguments
behaves exactly as before.
Can be used to render code conditionally based on window width.
Not every brand/project uses the same responsive breakpoints, so the thresholds are overridable - pass a partial
BreakpointThresholdsto change just the ones that differ from the defaults (BreakpointDefinitionValue, still exported for reference). CallinguseBreakpoint()with no arguments behaves exactly as before.