@hv_react/use-debounced-effect
v0.1.3
Published
React useEffect like hook with debouncing
Downloads
5
Readme
useDebouncedEffect
React useEffect like hook with debouncing
Install
npm i @hv_react/use-debounced-effect
Example
import React, { FunctionComponent } from "react";
import { useDebouncedEffect } from "@hv_react/use-debounced-effect";
interface Props {}
export const Component: FunctionComponent<Props> = () => {
useDebouncedEffect(
() => {}, // effect
1000, // delay in ms
[] // dependecies
)
return <div></div>;
}