ekwonye-richard / react-flags-select

Customizable svg flags select components for React Js
194 stars 121 forks source link

Using string ref is discouraged #56

Closed colthreepv closed 3 years ago

colthreepv commented 4 years ago

Including this library in a modern version of React recites so:

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() instead. Learn more about using refs safely here: https://fb.me/react-strict-mode-string-ref

ekwonye-richard commented 3 years ago

We are no longer using refs in v2 🙏🏾