score:3

Accepted answer
return useMediaQuery(
  limit === 'between'
    ? theme.breakpoints[limit](breakpoint, 1)
    : theme.breakpoints[limit](breakpoint)
);

Related Query

More Query from same tag