(amountToIncrement)
| 21 | const ref = doc(firestore, 'count', 'counter'); |
| 22 | |
| 23 | const incrementCounter = (amountToIncrement) => { |
| 24 | updateDoc(ref, { |
| 25 | value: increment(amountToIncrement), |
| 26 | }); |
| 27 | }; |
| 28 | |
| 29 | const { data: count } = useFirestoreDocData(ref); |
| 30 |