gabergg / react-scrollable-anchor

Smooth scrolling anchors bound to URL hash
MIT License
291 stars 89 forks source link

Warning: A string ref, "refId", 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 #75

Open regularpersonn opened 3 years ago

regularpersonn commented 3 years ago

I was wondering if this is something to be concerned about? Looks like this content could be upgraded to use the more up to date ref mechanisms listed here:

https://reactjs.org/link/strict-mode-string-ref

leon-marzahn commented 1 year ago

I've added a version of this library to my library collection that has some added improvements already (Sadly no documentation yet, i'm working on it though)

https://github.com/leon-marzahn/marzahn-dev/tree/main/libs/react/scroll-anchor