Javascript – React Error: Element type is invalid when rendering a list of results from API
I’m trying to fetch city data using the OpenCage API and display the results in a list using React and Chakra UI. However, I'm getting the following error: Error: Element type is invalid: expected a string (for built-in components) or…