react-input-debounce 1.0.7 → 1.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +6 -2
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -1,9 +1,13 @@
1
1
  # react input debounce [![npm version](https://img.shields.io/npm/v/react-input-debounce)](https://www.npmjs.com/package/react-input-debounce) [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE) [![GitHub stars](https://img.shields.io/github/stars/Bexet/react-input-debounce)](https://github.com/Bexet/react-input-debounce)
2
2
 
3
- Version 1.0.6
4
-
5
3
  `react input debounce` provides a simple and efficient React component to debounce the `onChange` event of a standard HTML input element. This prevents excessive re-renders or API calls while a user is actively typing, improving performance and user experience.
6
4
 
5
+ ```typescript
6
+ import { DebounceInput } from 'react-input-debounce';
7
+ ...
8
+ <DebounceInput debounceTimeout={500} onChange={...} />
9
+ ```
10
+
7
11
  ## ✨ Features
8
12
 
9
13
  * **Debounced `onChange` Event**: Automatically debounces the `onChange` event of an input field, triggering your handler only after a specified delay.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-input-debounce",
3
- "version": "1.0.7",
3
+ "version": "1.0.8",
4
4
  "description": "A React component to debounce input onChange event",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.es.js",