My FeedDiscussionsHeadless CMS
New
Sign in
Log inSign up
Learn more about Hashnode Headless CMSHashnode Headless CMS
Collaborate seamlessly with Hashnode Headless CMS for Enterprise.
Upgrade ✨Learn more

Get an array of objects

Debora Sousa's photo
Debora Sousa
·Jul 23, 2020·

1 min read

Hey guys, I'm using google translator my english is terrible, sorry for any mistake. But I need help with ReactJS. I have the following code in which I need to save the data returned in this api in an array of objects but what is happening is that it always overwrites what I already had before. Can someone help me?

pokemon.PNG