kciter / react-barcode

A <Barcode/> component for use with React.
http://kciter.github.io/react-barcode/
ISC License
400 stars 72 forks source link

npm modules not updated #31

Closed Muljayan closed 7 months ago

Muljayan commented 5 years ago

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.

aakash-bhatia-arkade commented 5 years ago

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.

abrenoch commented 5 years ago

I want to +1 this!

Svennisen commented 5 years ago

+1 !!

alandraper commented 2 years ago

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