I am doing a practice project where I have a dummy JSON containing products, I want to display it as a drop-down.. but as soon as I select an element it runs into an infini