React Firebase Ajouter un document à la collection

firebase
  .firestore()
  .collection("Users")
  .doc("mydoc")
  .collection("Activities")
  .doc("Database")
  .set({
    key: "1",
    value: "",
  })
  .then((ref) => { console.log(ref) });
Defiant Dove