Last active
September 25, 2020 14:45
-
-
Save zogreptile/4dcc13eaf058d88f5433e872ad29c598 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// export values from SCSS file | |
:export { | |
tablet-portrait: $tablet-portrait; | |
desktop: $desktop; | |
} | |
// JS | |
import BREAKPOINTS from '../breakpoints.scss'; | |
const isMatchesMQ = window.matchMedia(`(min-width: ${BREAKPOINTS.desktop})`).matches; | |
if (isMatchesMQ) foo(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment