A ReactJS hooks
You can use the project in this way:
# with npm
npm install customs-hooks
# with yarn
yarn add customs-hooks
- Import the package in your app:
import {useWindowSize} from 'customs-hooks'
This hook will give updated width and height of the window on resizing.
const windowSize = useWindowSize()