The hooks responds to screen size changes. View Source client/src/hooks/usemediaQuery.tsx, line 3 Example const isDesktop = useMediaQuery("(min-width: 1280px)");