Skip to content

Commit b926ed0

Browse files
committed
sets version to 2.1.0
1 parent e4c27cb commit b926ed0

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,13 @@ Changes:
4040
- introduces optional `clearOnClickInput` prop (default false)
4141
- introduces optional `onClick` lifecycle method prop (default empty function)
4242

43+
#### Version 2.0.0
44+
45+
Changes:
46+
47+
- refactors component to functional component using hooks
48+
- adds `useStateRef` to reduce re-renders and boost performance
49+
4350
## Installation
4451

4552
### Installation via npm
@@ -116,6 +123,7 @@ const YourComponent = ({ myValues }) => {
116123
| [debounceTime](#markdown-header-debounceTime) | number | optional | 0 |
117124
| [debounceLoader](#markdown-header-debounceLoader) | string | optional | 'Loading...' |
118125
| [onInput](#markdown-header-onInput) | function | optional | - |
126+
| [onClick](#markdown-header-onClick) | function | optional | - |
119127

120128
### <a name="markdown-header-items"></a>items
121129

@@ -291,4 +299,4 @@ useEffect(() => {
291299

292300
- The callback function that will be called whenever the user clicks the input field
293301
- This callback is exposed so you can implement `clearOnClickInput` on your own if you pass the `value` prop
294-
- The callback will receive the `currentInput` of type string based on `clearOnClickInput` and the last user input.
302+
- The callback will receive the `currentInput` of type string based on `clearOnClickInput` and the last user input

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-datalist-input",
3-
"version": "2.0.0",
3+
"version": "2.1.0",
44
"description": "This package provides a react component as follows: an input field with a drop down menu to pick a possible option based on the current input.",
55
"main": "./dist/DataListInput.js",
66
"files": [

0 commit comments

Comments
 (0)