Last active
October 15, 2019 16:12
-
-
Save udittyagi/f8c730b81c05a967e1a4f74c000af891 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
import React from 'react' | |
import {useBreakpoint} from './breakpoint.js' | |
const Usage = () => { | |
const breakpoints = useBreakpoint(); | |
const matchingList = Object.keys(breakpoints).map(media => ( | |
<li key={media}>{media} ---- {breakpoints[media] ? 'Yes' : 'No'}</li> | |
)) | |
return ( | |
<ol> | |
{matchingList} | |
</ol> | |
) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment