1.0.3 • Published 2 years ago

use-screen-width v1.0.3

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

use-screen-size

This helps you get the current screen width value

NPM JavaScript Style Guide

Install

npm install --save use-screen-width
yarn add use-screen-width

Example

This shows a quick example of displaying your screen width, screen height and current screen mode

import React from 'react'

import { useScreenWidth } from 'use-screen-width'

const App = () => {
  const { screenWidth } = useScreenWidth()

  return (
    <>
      <h1>Screen width: {screenWidth}px</h1>
    </>
  )
}
1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago