0.1.0-beta.2 • Published 6 months ago

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

Weekly downloads
-
License
MIT
Repository
github
Last release
6 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

6 months ago

0.1.0-beta.1

6 months ago

0.0.2

9 months ago