Skip to content

Tag: reactjs

.map is not a function with react functional component

i am trying to convert class component into a functional component , basically displaying all the nft’s with map function using dummy data which i have declared. can anyone guide me through this . I’ve been getting this error . TypeError: nfts.map is not a function Responsive src/components/compon…

Getting an array of Promises after async await

i’m trying to create an array of the daily forecast mapping over an array with cities. I’m trying to map over the array of the cities making an api call for each one of them once the page loads. I keep on getting an array of Promises such as this : Favorite Page component: Service with the api cal…

setting state within nested response

I am building a react app and I am setting the state with api of nested response of nested state But the state is not setting the way I want. response that is receiving from api App.js What is the problem ? Images are not showing after Title. I am trying to show all images in BlogList class of every

React Js Components imported but not displaying

I have two components ‘footer’ and ‘header’ in the components directory. It imports properly but I am not able to display it. App.js header.js footer.js The output is just this Answer Your components must start with a capital letter, if not they will be treated like a regular html tags…