Can I get help mapping React state to return data?
I am a beginner in React and today I stumbled upon a problem, perhaps I could use some help. The Home component needs to display a card with data brought in from an API. This is what I did: <div>…
I am a beginner in React and today I stumbled upon a problem, perhaps I could use some help. The Home component needs to display a card with data brought in from an API. This is what I did: <div>…
I have page with few forms components as defined below, everything in front works fine, however if I look my console logs the function Fetchmovies is continuously being executed and throws caught Error: Too many re-renders. React limits the number…
When an input element is disabled, it won't be handled by any event. <input disabled /> How to achieve that for any element (e.g. a span element)? I've tried using pointer-events: "none" but it only prevents click events. Other event…
Was trying to get familiar with nextJS 13. What I encountered is getServerSideProps function is not prerendering the page props. That's my first time trying it, so I don't know if I'm doing it wrong. Here's the code written in…
I have this kind of components tree in my react app. My header component includes the navbar component which in turn includes dialog1 and dialog2. So, I was wondering what is the best way to pass the props [opened1, opened2,…
I'm applying npm run build and I'm getting: Creating an optimized production build... Failed to compile. HookWebpackError: Cannot read properties of undefined (reading 'e') -- inner error -- TypeError: Cannot read properties of undefined (reading 'e') Generated code for C:UsersGersoOneDriveDocumentosReact…
I use npx-create-react-app years, but now i can't build with run npm run build. Today still is work. I update node and npm. Clear the cahce with: npm cache clean --force None of the projects work. neither with the old…
The Setup I'm building a React app that is statically served using Express. The React app is built with npm run build and the static files live in the build/ directory. Express statically serves these files with the following code…
im doing a website with antd and i want to do spa website. So, when user clicks on any btn in menu, the content would change. But i cant put my link component in onClick func. Code is there: <Menu…
We are trying to populate an array with songs using the Spotify API. The API allows you to grab 50 songs at once, so we created a loop using an offset to get 250 songs. After we get the songs,…