Created
October 15, 2019 19:42
-
-
Save jaysoo/23f34fae2d49822949199c527a07b279 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 { useViewportSize } from '@use-viewport-size/use-viewport-size'; | |
import './app.css'; | |
export const App = () => { | |
const size = useViewportSize(); | |
return ( | |
<div className="app"> | |
{size.width}px / {size.height}px | |
</div> | |
); | |
}; | |
export default App; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment