diff --git a/src/components/QrItem.js b/src/components/QrItem.js new file mode 100644 index 0000000..2bcf439 --- /dev/null +++ b/src/components/QrItem.js @@ -0,0 +1,36 @@ +import React from "react"; +import './Qrcode.css' + +function calViewBox(props) { + if (!props.qrcode) return '0 0 0 0'; + + const nCount = props.qrcode.getModuleCount(); + return '0 0 ' + String(nCount) + ' ' + String(nCount); +} + +class QrItem extends React.Component { + + constructor(props) { + super(props); + this.state = { + value: props.value + } + } + + render() { + return ( +