retrieve data firestore

PHOTO EMBED

Thu Oct 15 2020 23:22:27 GMT+0000 (Coordinated Universal Time)

Saved by @bifrost #react.js

    db.collection('iot').doc('test')
      .get()
      .then(snapshot => {
         setData(snapshot.data())
      })
      .catch(error => {
        console.error(error)
      })
content_copyCOPY