Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
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
  • npm
  • Socket score

Version published
Weekly downloads
356
decreased by-52.6%
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

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

  • 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