I want to list the districts of the province selected from the province option. I am pulling from local json file. How can I solve this problem?
<div className="flex items-center px-2">
<label for="cars">İl Seçiniz:</label>
<select onChange={(e) => handleProvince(e)}>
<option key={0} value={0}>
Lütfen bir İl seçiniz
</option>
{Provinces.map((province) => (
<option key={province.plaka} value={province.il}>
{province.il}
</option>
))}
</select>
</div>
<div className="flex items-center px-2">
<label for="cars">İlçe Seçiniz:</label>
<select>
{Provinces.map((item) => (
<option key={item.plaka} value={item.ilceleri}>
{item.il === "İstanbul" ? item.ilceleri : null}
</option>
))}
</select>
</div>