Hiding a sidebar on mobile without a hydration mismatch

Watch everything for $249.

Buy now

Hiding 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.