react-scrolllock icon indicating copy to clipboard operation
react-scrolllock copied to clipboard

Does it works with hooks?

Open vsolanogo opened this issue 5 years ago • 2 comments

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

vsolanogo avatar Jan 26 '20 02:01 vsolanogo

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?

flexdinesh avatar Feb 19 '20 06:02 flexdinesh

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)

rick-liruixin avatar Dec 01 '23 14:12 rick-liruixin