#Multiple target refs when using useScrollIntoView

2 messages · Page 1 of 1 (latest)

gloomy walrus
#

Hey, Is it possible to use the useScrollIntoView() hook with multiple target refs?

Essentially we need to scroll to specific sections of the page with a sticky nav bar. The amount of sections/refs can be n but is never less than 3.

Any ideas or currently not doable (and/or unplanned)?

empty elk