kripod opened this issue 5 years ago · 2 comments
Track whether a document matches the given media query. This may also be used for a usePreferredColorScheme (or useDarkMode) hook.
usePreferredColorScheme
useDarkMode
const isDesktop = useMedia('(min-width: 1024px)');
The PR above implements this enhancement #11
Implemented by #11