jossmac / react-scrolllock

🔒 Prevent scroll on the <body />
https://jossmac.github.io/react-scrolllock
MIT License
450 stars 40 forks source link

Does it works with hooks? #68

Open vsolanogo opened 4 years ago

vsolanogo commented 4 years ago

Using hooks in my project, but react-scrolllock doesn't work.

flexdinesh commented 4 years ago

Hey @vsolanogo , it should work with project with hooks as hooks is just an implementation detail. What's not working for you? Can you elaborate a bit?

rick-liruixin commented 9 months 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. [examples]:(https://github.com/rick-liruixin/body-scroll-lock-upgrade/blob/develop/examples/next/hooks/use-body-scroll-lock-upgrade.ts)