Socket
Book a DemoInstallSign in
Socket

rescript-debounce-react

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rescript-debounce-react

Debounce hooks for @rescript/react

2.0.1
latest
Source
npmnpm
Version published
Weekly downloads
387
-11.64%
Maintainers
1
Weekly downloads
 
Created
Source

rescript-debounce-react

version license build

Debounce hooks for @rescript/react.

ShakaCode

If you are looking for help with the development and optimization of your project, ShakaCode can help you to take the reliability and performance of your app to the next level.

If you are a developer interested in working on ReScript / TypeScript / Rust / Ruby on Rails projects, we're hiring!

Installation

# yarn
yarn add rescript-debounce-react
# or npm
npm install --save rescript-debounce-react

Then add it to rescript.json:

"bs-dependencies": [
  "rescript-debounce-react"
]

Usage

// With default timeout (100ms)
let fn = fn->ReactDebounce.useDebounced

// With configured timeout
let fn = fn->ReactDebounce.useDebounced(~wait=250)

// Controlled hook
let fn = fn->ReactDebounce.useControlled

See rescript-debounce for more details.

License

MIT.

Keywords

react

FAQs

Package last updated on 16 Feb 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.