![](/_next/image?url=%2F_next%2Fstatic%2Fmedia%2Fglow-homepage-mobile.61dc5f81.png&w=1920&q=75)
![](/_next/image?url=%2F_next%2Fstatic%2Fmedia%2Fglow-homepage-tablet.bfb22167.png&w=2048&q=75)
![](/_next/image?url=%2F_next%2Fstatic%2Fmedia%2Fglow-homepage.46f045ac.png&w=3840&q=75)
Watch everything for $349.
Buy nowHiding a sidebar on mobile without a hydration mismatch
Use the screen width to seed some React state in a way that's robust to server-side rendering.
Become a member to access this lesson's summary and source code.