I have a react code where it fetches all assessment year and populates in drop down but while displaying I wanted to increment it by one
suppose Assessment year is 2020 I want to show in drop down as FY : 2020-2021
Below code populates in dropdown when I try to increment it appends 1 instead of adding 1
<select
class="form-control"
name="selected_FY"
value="selected_FY" >
{
this.state.assessmentyears.map((fin, key) =>{
return (
<option key={key} value={fin.year}>FY: {fin.year}-{fin.year+1}</option>
)
})
}
</select>