Skip to content

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

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); …

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…