Get stream from media devices using react hook
https://use-user-media.yoyota.dev/#/useUserMedia
npm install --save use-user-media
import { useUserMedia } from "use-user-media"
const constraints = { video: true, audio: true }
// eslint-disable-next-line no-unused-vars
const [err, stream] = useUserMedia(constraints)
import { useUserMediaVideo } from "use-user-media"
const constraints = { video: true, audio: true }
// eslint-disable-next-line no-unused-vars
const [err, videoElement] = useUserMediaVideo(constraints)