Closed benhancock-com closed 6 years ago
@benhancockco do you think this can partially enable server-side rendering (https://github.com/kciter/react-barcode/issues/19)?
@kachkaev unfortunately this will not enable server-side rendering to any degree.
What changes would be required to make SSR happen? @benhancockco and @kciter, could you please share your thoughts in https://github.com/kciter/react-barcode/issues/19? If SSR is possible by the upstream lib, but there's just not enough time to enable it in react-barcode
, I'll be happy to work on a PR.
Unfortunately my knowledge on SSR is limited so I am unable to assist on this front., @kachkaev.
I've added a small snippet of code to enable the barcode to rendered as an
<img>
element (alongside the existing<svg>
and<canvas>
elements). Full jsbarcode documentation here.