Closed bk973 closed 1 year ago
ReactFire is meant to help you consume data from Firestore in React, not provide it. Use the vanilla Firebase JS SDK to make any updates to your database.
Thank you so much @aadito123 This helped me
Here's a code snippet from the example app that may help. It shows getting the initialized Firestore SDK with useFirestore
and then adds a document in the addAnimal
function.
I want to add data to cloud firestore but I can't find any guides in the documentation