I have react-hooks with array state. I would like to update my date data from this code.
const [[birthYear, birthMonth, birthDay], setStudentDob] = useState([]);
how can I change with the OnChange event on reacts?
//date
<select
value={birthDay}
onChange={handelDate}
name='day'
>
<option value='0'>Day</option>
<option value='01'>01</option>
<option value='02'>02</option>
<option value='03'>03</option>
</select>
//birthMonth
<select
value={birthMonth}
onChange={handelDate}
name='month'
>
<option value='0'>Day</option>
<option value='01'>january</option>
<option value='02'>february</option>
<option value='03'>march</option>
</select>
</select>
//birthYear
<select
value={birthYear}
onChange={handelDate}
name='year'
>
<option value='0'>Day</option>
<option value='2020'>2020</option>
<option value='2021'>2021</option>
<option value='2020'>2022</option>
</select>
if you have any preferable way to update please help me to find out these issues.