Search...
A React Hook that helps to detect whether the window is focused or not.
See API for more details.
Click links below to view source on GitHub.
const isFocused = useWindowFocus()
A boolean value that indicates whether the window is focused or not.
boolean