To Create A Date Range Picker in React JS , need to install following packages :
npm i antd
npm i moment
Step 1 : import DatePicker from antd and get RangePicker from this package
Step 2 : In the JSX Use the package , you will start get picker ui
Example :
To get the values use onChange method and save values in state
Try to console the state to check if the values are updating
App.js File :
Just use the above code after installing the required packages.
Comments
Post a Comment