
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
debounce-input-decorator
Advanced tools
Decorator to easily create debounced React inputs
Installation of the npm package:
> npm install --save debounce-input-decorator
You can apply this decorator either to a DOM element or to any React component as long as it accepts onChange
and value
properties.
import debounceDecorator from 'debounce-input-decorator'
import { Input } from 'reactstrap'
const ReactStrapInputDebounced = debounceDecorator(250)(Input)
const DomInputDebounced = debounceDecorator(250)('input')
Because you usually need a input
or textarea
, those are provided
directly:
import { Input, Textarea } from 'debounce-input-decorator'
<Input
debounceTimeout={300}
// ...
/>
# Install dependencies
> yarn
# Run the tests
> yarn test
# Continuously compile
> yarn dev
# Continuously run the tests
> yarn dev-test
# Build for production (automatically called by npm install)
> yarn build
Contributions are very welcomed, either on the documentation or on the code.
You may:
ISC © Julien Fontanet
FAQs
Decorator to easily create debounced React inputs
We found that debounce-input-decorator demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
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.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.