fisshy / react-scroll

React scroll component
https://github.com/fisshy/react-scroll/blob/master/README.md
MIT License
4.35k stars 436 forks source link

Add Container: Prop to docs #577

Open theproj3ct opened 5 months ago

theproj3ct commented 5 months ago

Hey there please add container: prop/option to the docs as i was struggling for so long to set this to a node instead of an id string.. i needed a node to handle multiple containerIDs that were the same..

i found container option in the code but nowhere does your docs mention this, it only says containerID.

container: document.querySelector('#list')

worked perfectly for multiple #list scroll containers

Thanks