useMediaQuery()
description
- It monitors the screen width and returns whether it fits or not.
- When the determination switches, the state is updated.
code
const isMatch = useMediaQuery("max", 960);
return:
description
code
const isMatch = useMediaQuery("max", 960);
return: