how to store multiple date from date form field in reactjs code example
Example: how to store multiple date from date form field in reactjs
handleChange = (e, date) => {
const value = moment(date);
const chargeId = e.target.name;
console.log(chargeId);
this.setState({[chargeId]: value}, () => console.log(this.state[chargeId]));
}