Basic usage
Use the useBreakpoints
hook to conditionally render components or component trees based on the current window breakpoint.
See how breakpoints are defined in the media
object →
Warning
Do not use useBreakpoints
for responsive styles. Use CSS media queries or the StyleProps
API for responsive styles.
Loading...