1.0.0 • Published 5 years ago
react-hooks-screen-type v1.0.0
About
This package is useful for determining screen size type on web applications with respect to bootstrap 4 grid system.
Install
npm i react-hooks-screen-type
Or
yarn add react-hooks-screen-type
Usage
import useScreenType from 'react-hooks-screen-type';
function MyAwesomeComponent() {
const screenType = useScreenType();
// can be "x-small, small, medium, large, x-large"
}
License
Licensed under the MIT License, Copyright © 2018-present Pankod
1.0.0
5 years ago