Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/pankod/react-hooks-screen-type

Determining screen size type for Bootstrap 4 grid.
https://github.com/pankod/react-hooks-screen-type

react-hooks

Last synced: about 1 month ago
JSON representation

Determining screen size type for Bootstrap 4 grid.

Awesome Lists containing this project

README

        

## 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