willmcpo / body-scroll-lock

Body scroll locking that just works with everything 😏
MIT License
4.04k stars 337 forks source link

innerRef as props instead ref to pass properly #130

Open silvestrevivo opened 5 years ago

silvestrevivo commented 5 years ago

Objective:

Update the documentation about React.ref() to pass the props properly through class components.

Change:

README.md file is adjusted to explain how to pass the ref between components.