useQRCode always returns false
xaphod opened this issue · 0 comments
xaphod commented
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