0 points

retrieve data firestore


dashboard

Thu Oct 15 2020 23:22:27 GMT+0000 (UTC)

Posted by @bifrost #react.js

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