xiCO2k / react-scroll-area

Custom scroll to overflow: scroll areas
https://xico2k.github.io/react-scroll-area/
MIT License
9 stars 0 forks source link

How to use methods? #3

Closed usfslk closed 4 years ago

usfslk commented 4 years ago

I am looking to trigger goToPos but not sure how to reference the scroll area, in the example provided it's not clear.

xiCO2k commented 4 years ago

Hey @usfslk you add a ref to the component and then you can use it.