Sitelet https://github.com/pankod/react-hooks-screen-type
Skip to content

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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"
}

Created by Pankod

License

Licensed under the MIT License, Copyright © 2018-present Pankod

About

Determining screen size type for Bootstrap 4 grid.

Topics

Resources

Stars

15 stars

Watchers

3 watching

Forks

Releases

Packages

Contributors

Languages