Bunlong / next-qrcode

React hooks for generating QRCode for your next React apps.
https://next-qrcode.js.org
MIT License
159 stars 18 forks source link

useQRCode always returns false #12

Closed xaphod closed 1 year ago

xaphod commented 3 years ago
  import { useQRCode } from 'react-qrcodes';

  const qrCode = useQRCode<HTMLImageElement>({
    text: 'https://google.com',
    options: {
      type: 'image/jpeg',
      quality: 0.3,
      level: 'M',
      margin: 3,
      scale: 4,
      width: 200,
      color: {
        dark: '#010599FF',
        light: '#FFBF60FF',
      },
    },
  });

  console.log(qrCode);

--> qrCode is always false, never an array as docs would imply is supposed to be