Json – Why can't I map over an array of object in React.js after passing data to another component?
After making an api request and getting the data in searchbar.js component, I passed the data to another component (ShowList.js). But I was not able to map over the data. Searchbar.js import React from 'react' import Button from 'react-bootstrap/Button'; import…