-
-
Notifications
You must be signed in to change notification settings - Fork 76
Open
Description
👋 @kciter,
Awesome lib, I've been using it for a couple of years!
You've probably heard about the upcoming Concurrent Mode, which imposes some additional restrictions to the components. It seems that react-barcode is not fully compatible because of a string ref begin used. Here is a warning I'm seeing after wrapping <Barcode> into <React.StrictMode>:
Warning: A string ref, "renderElement", has been found within a strict mode tree.
String refs are a source of potential bugs and should be avoided. We recommend
using useRef() or createRef() instead. Learn more about using refs safely here:
https://fb.me/react-strict-mode-string-ref
lauthieb, lisdey, SamWarmuth, ipodhii, ryskin and 9 more
Metadata
Metadata
Assignees
Labels
No labels