0.1.0-beta.1 • Published 7 months ago

@n3p6/use-illuminance v0.1.0-beta.1

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

@n3p6/use-illuminance

A very small React Hook to help you get illuminance from Ambient Light Sensor API.

Usage

Install

Example

import { useIlluminance } from '@n3p6/use-illuminance'

const App = () => {
  const illuminance = useIlluminance()

  return (
    <div>
      <h1>Illuminance:</h1>
      <span>{illuminance}</span>
    </div>
  )
}

export default App

License

MIT

0.1.0-beta.2

7 months ago

0.1.0-beta.1

7 months ago

0.0.2

9 months ago