My initial State
const [state,setState] = useState({
country : "",
nationality : "",
})
My first select tag :
<select> //select for country
<option>Nepal<option/>
<option>USA<option/>
</select>
My second select tag :
<select> //select for nationality
<option>Nepali<option/>
<option>Ameracain<option/>
</select>
At the end , I need all the selected values of both select tag in the single state.
const [state,setState] = useState({
country : "Nepal",
nationality : "Nepali",
})