willmcpo / body-scroll-lock

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

Add example using React hooks #269

Open edgarlr opened 1 year ago

edgarlr commented 1 year ago

Even when they're already 2 react examples, most of the modern react development is around hooks. Would be great to add an example of how to use body-scroll-lock along with modern react. (hooks)

rick-liruixin commented 1 year ago

They stopped the repairs. I had to do it myself, in the same way, with a new version of typeScript. And fix these problems for everyone to use. add react hooks、vue3 example

npm i body-scroll-lock-upgrade

repair log,Refer to the releases page.