how to add multiple strings in firebase document using react code example
Example: firestore batch add array
var db = firebase.firestore();
var batch = db.batch()
save(docs: any[]) {
docs.forEach((doc) => {
var docRef = db.collection("col").doc(); //automatically generate unique id
batch.set(docRef, doc);
});
return batch.commit();
}