@materialios/hooks

0.1.5 • Public • Published

@materialios/hooks

ReactJs hooks for @materialios

Features

  • useWindowSize
  • useResponsive

Installation

npm i @materialios/hooks

Example

import { useResponsive } from '@materialios/hooks'

const App = () => {
  const { orientation, device, size } = useResponsive()

  return (
    <div className='App'>
      <p>orientation: {orientation}</p>
      <p>device: {device}</p>
      <p>size: {size}</p>
    </div>
  )
}

export default App

Contributing

It's really still early days. So, help us to grow faster. Email me on muhammadnurrendra@gmail.com

Creator

@mnrendra

Package Sidebar

Install

npm i @materialios/hooks

Weekly Downloads

2

Version

0.1.5

License

ISC

Unpacked Size

5.29 kB

Total Files

8

Last publish

Collaborators

  • mnrendra