My app has so 30 divs.. currently the user can press and it plays a sound and changes color...
However, om auto play the divs that are lower on the screen play but I need it to focus and scroll to that div so the user does not have to.
I see some solutions for a single element using ref but each lesson (page) has X number of divs.
I am using CRA.
Update: I posted the solution as answer. ScrollIntoView is the key but that example was not exactly what I wanted to do I think.