Posts by juliafealves • 66 points
3 posts
-
2
votes2
answers58
viewsA: Change the array data coming from the api
Complementing the reply of the colleague @novic can use the forEach(), as below: const data = [{ id: 1, name: 'product01' }, { id: 2, name: 'product02'}]; data.forEach(item => item =…
-
2
votes1
answer57
viewsA: String change for arithmetic operator
As @hkotsubo commented, you can use eval to solve your problem. I made an example to help you: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" />…
javascriptanswered juliafealves 66 -
1
votes1
answer79
viewsA: context Api shows no value in the Consumer
I’m not sure I understood what you wanted to do, but how you must have studied, the Context.Provider passes the data to the child components through the Context.Consumer. In my vision, the…