Ps: The current setup was done on 01-04-19
Project Dependency Versions at the time 👇
"react": "^16.7.0",
"react-dom": "^16.7.0",
"react-scripts": "2.1.3",
"typescript": "^3.2.2"
"tslint": "^5.12.0",
"tslint-config-prettier": "^1.17.0",| import React from 'react'; | |
| import { useWindowSize } from 'react-use'; | |
| // 100vh is broken on mobile (Chrome, Safari): | |
| // https://chanind.github.io/javascript/2019/09/28/avoid-100vh-on-mobile-web.html | |
| export default function use100vh() { | |
| const ref = React.useRef(); | |
| const { height } = useWindowSize(); |
Ps: The current setup was done on 01-04-19
Project Dependency Versions at the time 👇
"react": "^16.7.0",
"react-dom": "^16.7.0",
"react-scripts": "2.1.3",
"typescript": "^3.2.2"
"tslint": "^5.12.0",
"tslint-config-prettier": "^1.17.0",