Posts by Douglas • 1 point
2 posts
-
0
votes3
answers1423
viewsA: useState does not update - Reactjs
What is happening in this case is that when useEffect runs the status value of the date variable is the initial value, if you add the variable data in the dependency array the code will execute as…
-
0
votes2
answers39
viewsA: How to save a dice with mongosis
you can use the methods findOneAndUpdate() or findByIdAndUpdate() to search for a field and change it const categoria = {name: req.body.name, ...} categorias.findOneAndUpdate({id: req.body.id},…