Skip to content

QRCode from qrcode.react is deprecated – should use QRCodeSVG insteadΒ #1001

@micaelvitor

Description

@micaelvitor

Hi! πŸ‘‹

I noticed that the current documentation/example still uses the QRCode component from the qrcode.react library. However, this component has been deprecated, and using it now throws an error like:

QRCode is not exported from 'qrcode.react'

According to the qrcode.react documentation, we should now use QRCodeSVG or QRCodeCanvas instead.

Suggested fix:
Update all references to:

import { QRCodeSVG } from 'qrcode.react';

And update the TSX accordingly:

<QRCodeSVG value={yourValueHere} />

This change would make the example compatible with the latest version of qrcode.react.

Thanks <3

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions