react-flags icon indicating copy to clipboard operation
react-flags copied to clipboard

Impossible to use it inside a styled component due to "strict mode tree" incompatibility

Open luisggouveia opened this issue 4 years ago • 0 comments

The error, when I use it inside a 'styled-components' header, is the following:

"A string ref, "selectedFlag", 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()"

luisggouveia avatar Jun 18 '20 11:06 luisggouveia