I want to ask about array mapping.
So, I have data in the api that looks like this when in the console.
// The code for the fetch is like this
const [listCategory, setListCategory] = useState([]);
const getListCategoryPoi = () => {
setIsLoading(true);
getCategoryPoi()
.then((res) => {
setListCategory(res[1].map((item) => item.data.features));
console.log(res[1].map((item) => item.data.features));
console.log(res[1].map((item) => item.data.features[0]));
})
.catch((reject) => {
console.log(reject);
})
.finally(setIsLoading(false));
};
// And the code to display the data like this when using .map
{listCategory.map((item, index) => (
<p key={index}>{item.category}</p>
))}
However, when I look in the browser it doesn't show up.
My question is, how to display the data category if the data in the console looks like the first image? Thank you

