JSBarcode component for React
npm install react-jsbarcode





This is a React component wrapping up jsbarcode>). Written as a React functional component using React hooks.


using NPM
``bash`
npm i react-jsbarcode
using yarn
`bash`
yarn add react-jsbarcode
using PNPM
`bash`
pnpm add react-jsbarcode
- Basic usage
`tsx
import { ReactBarcode } from 'react-jsbarcode';
const App = () => {
return
};
`
- Advanced usage
`tsx
import { ReactBarcode } from 'react-jsbarcode';
const App = () => {
return
};
``
For all options refer jsbarcode wiki.
JSBarcode supports rendering to SVG, image and canvas. Default renderer is 'svg'.

