Posts by Paulo Vitor Nascimento • 3 points
2 posts
-
0
votes0
answers191
viewsQ: Hooks: Usestate with dynamic array manipulation in React Native
Good morning/afternoon/evening, I need your help if possible... I own a hook const [itens, setItens] = React.useState([ { id: 1, nome: "Item 1" }, { id: 2, nome: "Item 2" } ]); In fact it is blank,…
-
0
votes1
answer39
viewsQ: Doubt about waiting for a Javascript function to return
I’m having a hard time in a situation. I am using React Native and, in a separate file, I have some global variables and I thought I would also use some functions like this: //Função "Global" que…