Why is useState not re-rendering the changes for dates? – Reactjs
I have a react form where I have to put in a logic if startdate > endate, it should revert the startdate to current date. I am adding the form values in an useState array object. Initial array object looks…