I'm looking to scroll an element to view when a callback is called in a separate div.
I'm following this thread which seems to work if the element is in the same div, but if the reference is to an element in a different div, is does not work.
React Sandbox: https://codesandbox.io/s/unruffled-carson-w8o46?file=/src/App.js
How can I achieve this?