Whenever I get data on my page, after a few seconds, my whole react app disappears as in the root div in the html is left completely empty like this <div id=”root”></div> as if there is nothing. This is happening on all my other projects too even when I create a new one, this disappearing of the react keeps happening
Tag: api
How to “store” data from an API call and refresh it (make new call) overtime (replacing old stored contents) on website
I’m a volunteer for this association/game called FAF. We have a leaderboards (https://www.faforever.com/competitive/leaderboards/1v1) of players that we get through API calls. However, it isn’t very efficient to make it so everytime someone opens the leaderboard page to make an API call to get the rankings. However, Imagine if 1000 people visit it, that would be 1000 calls to the API
Why can I not overwrite the innerHTML after I once clicked into it
My Code: As you probably read, the code is for a Real-Time Texteditor Project I’m working on with a friend. But I don’t understand why everything works well until I click on the text field and wanna write something. The server gets everything and the other instance also. The only problem is, that the second instance doesn’t overwrite the innerHTML
Stripe integration in an Expo managed project
I’m very new to programming, I know I’m not supposed to ask here, but I really got lost, I’m building a food ordering app with Expo and the only thing left for me is to add Stripe and building the iOS and android projects. I’m really confused on what are the next steps, some people talk about ejecting and then
why does the fetch request not work when I try to fetch a markdown file?
I am trying to display a markdown file from my computer to the browser window with fetch, but the response (text) is undefined, why is this happening? I leave a codepen with my code. https://codepen.io/matiasConchaSoto/pen/popvQgp somebody help me please. Answer The first .then() has a missing return. Try: Even better, something like:
Getting OAuthCallbackError with nextjs Auth
I am trying to make a spotify analysis app that would analyse your Spotify data. But I am getting this error on authorization. Here is my auth file. this is my middleware this is my login.js It would be really great if someone could help me out here. Everytime I am trying to login,it’s throwing me this error.(http://localhost:3000/login?callbackUrl=http://localhost:3000/&error=OAuthCallback) Answer I
Outputting JSON from Curl APi call to Ajax
I am working on a course project in which I am required to use php to make api calls. The Ajax call looks like this: The php api call looks like this: This works perfectly. I have used the same routine to make similar calls go the geonames API and had no issues doing so as they provide the name
Best Practice of calling an API endpoint [closed]
Closed. This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 12 months ago. Improve this question What is the best practice of returning when calling an API endpoint? Is it best to return the whole response? Let’s
Axios: How to render API item base on spesific child element?
Hi Everyone I am new in ReactJS and also in Axios. I try to get data from Instagram Api and i want to render a Image if image has spesific letter in caption for example if caption has ‘Y’ letter should render on page otherwise not. With my code i render all post from profile but i cant sort the
how to map through multiple images, after connecting to a third party api
I’ve managed to connect to an api, which returns images of dogs. However, I’m stuck on how to map more than one image, without repeating code. I essentially want to display a grid with(lets say 9) images, all with different dog images from this api. At the moment, it displays one image with a json object mapped out underneath it.