Skip to content
Advertisement

map method not running

I have an array, I push doc data from firebase into that array and I want to display a table row for each doc. The problem is that the map method won’t do anything.

JavaScript

Advertisement

Answer

First of all, you need to update the state by setAllScores

JavaScript
User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement