1.0.8 • Published 7 years ago
width-checker v1.0.8
Width checker
Instalation
yarn add width-checkeror
npm install width-checkerUsage
<WidthChecker widthUp={650} widthBelow={1200}>
{({ display }) =>
display && <p>Something you want to show between 650px and 1200px of screen wide</p>
}
</WidthChecker>Props
- wait - time in miliseconds to wait between each debounce tick
- widthUp - bottom range
- widthBelow - upper range