Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/exercise/06.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ Production deploys:
- [Exercise](https://advanced-react-hooks.netlify.com/isolated/exercise/06.js)
- [Final](https://advanced-react-hooks.netlify.com/isolated/final/06.js)

> Note: useDebugValue values will not show in production, because the production build of useDebugValue does nothing.

In this exercise, we have a custom `useMedia` hook which uses
`window.matchMedia` to determine whether the user-agent satisfies a given media
query. In our `Box` component, we're using it three times to determine whether
Expand Down