Skip to content

Latest commit

 

History

History
22 lines (16 loc) · 330 Bytes

useMediaDevices.md

File metadata and controls

22 lines (16 loc) · 330 Bytes

useMediaDevices

Vue sensor hook that tracks connected hardware devices.

Usage

import {useMediaDevices} from 'vue-next-use';

const Demo = {
  setup(){
      const state = useMediaDevices();

      return () => (
          <pre>
              {JSON.stringify(state, null, 2)}
          </pre>
      );
  }
};