lanjingling0510 / react-mobile-datepicker

🙊 👻 look a demo, Please imitate mobile environment.
https://codepen.io/lanjingling0510/pen/LRpOYp?editors=1010
MIT License
301 stars 145 forks source link

Using UseRef or createRef instead of ref for scrolling #64

Open blacksheepIV opened 2 years ago

blacksheepIV commented 2 years ago

Hey there @lanjingling0510 @Kerminate ,

I came across this warning using your ract-mobile-datepicker package is there any plans for that(switching to useRef hook) or is there any special reason avoiding do so?

Warning: A string ref, "scroll", 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://reactjs.org/link/strict-mode-string-ref div