Appearance
useQRCode
Wrapper for qrcode.
Demo
Install
bash
npm i qrcode@^1Usage
tsx
import { useQRCode } from '@reause/integrations'
// `qrcode` is the data URL, `''` until the first encode resolves
const qrcode = useQRCode('text-to-encode')Type Declarations
ts
export function useQRCode(text: string, options?: QRCode.QRCodeToDataURLOptions): string