October 2019
Intermediate to advanced
426 pages
11h 49m
English
In our blog app, we are going to hide the UserBar and ChangeTheme components completely when the screen size is very small so that, when reading a post on a mobile phone, we can focus on the content.
Let's get started implementing the Window Size Hook:
> npm install --save @rehooks/window-size
import useWindowSize from '@rehooks/window-size'
const { innerWidth } = useWindowSize()
const ...
Read now
Unlock full access