Changing react barcode format

I am currently using the react-barcode package. It is currently using the format="CODE128" format, I needed to change it to use the Code 39 Barcode Font. How to I import the font to my react project and use it in the react-barcode component. If its not possible is there any other components I can use to achieve this.


import React, { Component } from 'react';
import Barcode from 'react-barcode';

 class Posts extends Component { 
     render () {
         return (
               <Barcode value="" />

 export default (Posts);

Display of the
code128 barcode

Stack Overflow Asked by mig_08 on November 22, 2021

1 Answers

One Answer

React-barcode doesn't use a barcode font at all.

You can just, following the docs, set format="CODE39".

<Barcode value="123456" format="CODE39" />

Answered by AKX on November 22, 2021

Add your own answers!

Related Questions

how to get grid id as string in c#

1  Asked on December 30, 2020 by dr-engg


find entry with needed information

3  Asked on December 29, 2020 by ashley


Heroku error: bash: web:: command not found

2  Asked on December 29, 2020 by fayewaii


regex to match question sentences in long text

1  Asked on December 29, 2020 by duke-wellington


Issues with linking Javascript files with Node.js and HTML

2  Asked on December 29, 2020 by coder-husk


Why am i getting the output twice in the Node console?

2  Asked on December 29, 2020 by chetan-batra


button to act as checkbox and change styles?

3  Asked on December 29, 2020 by jayg713


What should be structure of Redux Store?

2  Asked on December 29, 2020 by kiran


Ask a Question

Get help from others!

© 2021 All rights reserved.