Skip to content

Commit 93aa4b1

Browse files
committed
Latest version upgraded
1 parent 2d1ea28 commit 93aa4b1

9 files changed

+811
-1794
lines changed

Diff for: .eslintrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
},
2020
"settings": {
2121
"react": {
22-
"version": "16"
22+
"version": "18"
2323
}
2424
},
2525
"rules": {

Diff for: README.md

+10-8
Original file line numberDiff line numberDiff line change
@@ -48,21 +48,23 @@ import React ,{ Component } from 'react';
4848
import Calendar from 'react-weblineindia-date-picker'
4949

5050
class Test extends Component {
51-
constructor(props) {
51+
constructor(props) {
5252
super(props);
5353
this.state = {
54-
value:''
54+
date1: null,
5555
};
56-
render(){
56+
}
57+
58+
render() {
5759
return (
5860
<div>
59-
<Calendar
60-
value={this.state.value}
61-
showIcon={true}
62-
/>
61+
<Calendar id="basic" value={this.state.date1} onChange={(e) => this.setState({ date1: e.value })} />
6362
</div>
64-
)}
63+
);
64+
}
6565
}
66+
67+
export default Test;
6668
```
6769
## Available Props
6870
| Prop | Type | default | Description |

0 commit comments

Comments
 (0)