react-barcode
react-barcode copied to clipboard
npm modules not updated
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.
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.
I want to +1 this!
+1 !!
Yeah. The github has been updated last month, but the npm module is 5 months old.