How useQRCode works
masterThe useQRCode hook is the primary entry point for the library. It returns an object containing different rendering components: Canvas, SVG, and Image. You can choose the component based on your rendering needs (e.g., Canvas for pixel-based rendering, SVG for vector graphics, or Image for standard image formats).
import { useQRCode } from 'next-qrcode';
function App() {
const { Canvas, SVG, Image } = useQRCode();
// ... use components
}