Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@lani.ground/react-hooks

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lani.ground/react-hooks - npm Package Compare versions

Comparing version 0.1.3 to 0.1.4

4

package.json
{
"name": "@lani.ground/react-hooks",
"description": "react hooks",
"version": "0.1.3",
"version": "0.1.4",
"keywords": [

@@ -73,3 +73,3 @@ "react-hooks",

},
"gitHead": "3a671178c3da40cd4555ad3781758481b767e559"
"gitHead": "5db3c98d56349e2bd25d4a87158db0ef8494a459"
}

@@ -10,2 +10,4 @@ # react-hooks

```tsx
import { useVisibleElement } from '@lani.ground/react-hooks';
export default function Component() {

@@ -20,12 +22,12 @@ const { ref, activeKey, activeElement } = useVisibleElement({

<div ref={ref}>
<section>
<section style={{height: '100vh'}}>
<p>section 1</p>
</section>
<section>
<section style={{height: '100vh'}}>
<p>section 2</p>
</section>
<section>
<section style={{height: '100vh'}}>
<p>section 3</p>
</section>
<section>
<section style={{height: '100vh'}}>
<p>section 4</p>

@@ -44,2 +46,4 @@ </section>

```tsx
import { useScrollLock } from '@lani.ground/react-hooks';
export default function Component() {

@@ -46,0 +50,0 @@ comst {lockScroll, unlockScroll} = useScrollLock();

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc