Coding task · JavaScript and React course · Module 5: useEffect and Custom Hooks
Create a custom hook useMediaQuery that responds to media query changes. Use window.matchMedia and useEffect.
Custom Media Query Hook