react-barcode icon indicating copy to clipboard operation
react-barcode copied to clipboard

npm modules not updated

Open Muljayan opened this issue 6 years ago • 4 comments

I wanted to render the barcode in an img tag and realized that nothing gets rendered.

Upon checking the installed react-barcode in node_modules i realized that the react-barcode.js file is still written using the createClass syntax and doesn't look like the react-barcode.js file in this repo.

Muljayan avatar Jan 21 '19 10:01 Muljayan

Hey Noticed the same thing:

render: function render() { if (this.props.renderer === 'svg') { return React.createElement('svg', { ref: 'renderElement' }); } else if (this.props.renderer === 'canvas') { return React.createElement('canvas', { ref: 'renderElement' }); } else if (this.props.renderer === 'img') { return React.createElement('img', { ref: 'renderElement' }); } }

It's a great package, hope it's updated to match the repo.

aakash-bhatia-arkade avatar Feb 01 '19 05:02 aakash-bhatia-arkade

I want to +1 this!

abrenoch avatar May 08 '19 18:05 abrenoch

+1 !!

Svennisen avatar Sep 05 '19 22:09 Svennisen

Yeah. The github has been updated last month, but the npm module is 5 months old.

alandraper avatar Feb 22 '22 17:02 alandraper