I am having a problem with calling an error when i call a POST request in React Native, i know that there is a catch but it only throws for network connections, how do i do that with errors i get from the response when i have a wrong password or wrong username like when this Error is called from
Category: Questions
how to make a loop on a json file?
I have to handle a JSON file. In JSON BLOCAGES -> BLOCAGE > I have to retrieve QTE and DTE. Here is my file JSON here My problem is that, I display QTE and DTE one time. For now, I have this => enter image description here I want to get this result => enter image description here I’m missing
How do I make this JavaScript compatible with “use strict”?
I know the issue is that “minYear” and “maxYear” are undeclared variables, but I’m not sure how I’m meant to declare them without breaking the code entirely? Answer minYear and maxYear are variables like the others (date, dd, mm, etc…). You should declare them using t…
react native useState is not incrementing counter
When counter is >= data Array length setLoading should trigger. But counter is not being incrementing until I refresh app by pressing CTRL+S then counter increment itself by 1 every time app refreshes. Answer Updating state is an asynchronous operation, so getting loopCount in for loop will get the initial…
p5.js: Let the computer draw something
I would like to let the computer draw something. It should look like a human is drawing something on a paper, with random values. This is my try: function setup() { createCanvas(500, 500); …
tried a lot but not able to make deletehandler function working. here is my code
This is my librarylist component in which i pass deletehandler function to delete the row from library management. I don’t know which part of the code is causing the problem. Any helps/suggestions are welcome. LibraryBookList.js here i pass deletehandler via props LibraryBook.js **BookData.js ** NewData…
How to load classic AJAX / asynchronous content from my root with REACT -NOT JSON or just images
I’m still new to React, I’ve done a lot of tutorials and now I’m getting to the practical part. I am translating a classic DEV environment into React as an exercise. This consisted of PHP, vanilla JS, a little jQuery, animations and transitions with GSAP. I was able to translate everything s…
How can I pull the languages used by GitHub api users and their percentages into my html page?
my ui js class: how can I print the languages the user is using in their repo and the percentiles of the languages? (i printed the username, name, surname, and repo names I got from the user) my github js class : Answer I added a new function in your github class and now you can get the language percentage…
This dependency was not found: *swiper/vue how to fix?
I’m scratching my head because I ran npm i swiper and read through the Swiper Vue docs and it says to import { Swiper, SwiperSlide } from ‘swiper/vue which I’ve done and I even get the bundle size showing 95.4K (gzipped: 28.9K). When I run npm run serve I then get this error I for the life o…
Dynamically create html pages
I’m trying to build a website, I have an API which extracts a list of products and gives me a JSON file which has all the info I need. What I wanted to achieve is to have a separate page created for each of the product – dynamically (since the JSON file will be changing). Is that possible with jav…