Saturday, 9 October, 2021 UTC


Summary

react-jsbarcode





About
This is a React component wrapping up jsbarcode. Written as a React functional component using React hooks.
Installation
using NPM
npm i react-jsbarcode
using yarn
yarn add react-jsbarcode
Usage
import ReactJSBarcode from 'react-jsbarcode';

const App = () => {
  return <ReactJSBarcode value="ABC123" options={{ format: 'code128' }} renderer="svg" />;
};
For all options refer jsbarcode wiki.

Renderers

JSBarcode supports rendering to SVG, image and canvas. Default renderer is ‘svg’.
GitHub
https://github.com/iamchathu/react-jsbarcode