
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
@18f/redux-textarea-debounce
Advanced tools
textarea component whose onchange is debounced, perfect for use in redux apps
A React component that emulates a <textarea>
but debounces the onChange
event, which is especially useful for redux apps. If you try to handle every
onChange
by routing it through the dispatcher and all that fun stuff, your
app may begin to lag. This app helps with that!
npm i @18f/redux-textarea-debounce
Whatever function you provide as the onChange
prop is debounced so it only
runs at most once every 200ms. As long as the user keeps typing, it won't run
at all - unless they slow down long enough.
It's as much like a regular textarea
as possible:
import TextArea from '@18f/redux-textarea-debounce';
function handler(e) {
// You get the full SyntheticEvent object, but
// not on every change - at most once every 200ms
console.log(e.target.value);
}
render() {
return (
<TextArea value="initial value" onChange={handler} />
);
}
Prop | Type | Description |
---|---|---|
value | string | The initial text value of the text area. |
name | string | A name for the component, passed down to the underlying <textarea> - this will show up on the event as event.target.name . |
onChange | function | The event handler for change events, called at most once ever 200ms. Receives one argument, a React SyntheticEvent from the underlying real <textarea> component. |
This project is in the worldwide public domain. As stated in CONTRIBUTING:
This project is in the public domain within the United States, and copyright and related rights in the work worldwide are waived through the CC0 1.0 Universal public domain dedication.
All contributions to this project will be released under the CC0 dedication. By submitting a pull request, you are agreeing to comply with this waiver of copyright interest.
FAQs
textarea component whose onchange is debounced, perfect for use in redux apps
We found that @18f/redux-textarea-debounce demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 13 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
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.