I’m making a language selector for a website with React and I have a drop down menu that I need to display the country name and the flag of the country which I’m providing by img. But it only displays the text value of the keys
I tried putting the img path as value to one of the keys, but i comes only as text
this the component from which I take values
The component where I create the object with values
The component with which I visualize the options