Created
July 5, 2018 21:46
-
-
Save damusnet/bed5b5293738a35d899452beab1a3f6c to your computer and use it in GitHub Desktop.
This file contains hidden or 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, { Component } from "react"; | |
import { DeviceSizeListener, DeviceSwitch } from "../../src"; | |
const BREAKPOINT = "min-width: 600px"; | |
const example = () => ( | |
<DeviceSizeListener breakpoint={BREAKPOINT}> | |
<DeviceSwitch | |
mobileRender="Mobile!" | |
desktopRender="Not a Mobile!" | |
/> | |
</DeviceSizeListener> | |
); | |
export default example; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment