0

I want to create dropdown fields containing countries and cities using PrimeReact. I want to provide this with json file. After the country is selected, I want the cities to be listed accordingly. I couldn't find any examples. How can I achieve this?

"data" :[
    {
      "code2": "AF",
      "code3": "AFG",
      "name": "Afghanistan",
      "capital": "Kabul",
      "region": "Asia",
      "subregion": "Southern Asia",
      "states": [
        {
          "code": "BDS",
          "name": "Badakhshān",
          "subdivision": null
        },

Jasper de Vries
  • 19,370
  • 6
  • 64
  • 102
alpayergul
  • 33
  • 4
  • Isn't that this EXACT example: https://primefaces.org/primereact/cascadeselect/ – Melloware May 26 '22 at 16:56
  • https://codesandbox.io/s/agitated-shockley-6ljntv?file=/src/demo/AutoCompleteDemo.js I want to do it on two different inputs. I was able to make it this far. – alpayergul May 27 '22 at 07:22

0 Answers0