0
Q:

how to edited the firestore from front-end

const b = document.createElement('button');b.textContent = '+100';b.onclick = () => updatePopulation(city.name, city.pop + 100);p.appendChild(b);
0
const updatePopulation = (city, pop) => {  cities.doc(city).update({    pop: pop  })}
0

New to Communities?

Join the community