Firebase

Firestore

(This is the latest one)

https://firebase.google.com/docs/firestore https://console.firebase.google.com/

$ yarn add firebase

Go to https://console.firebase.google.com/ > project > gear icon > Project Settings > Your Apps > Firebase SDK Snippet > Config to get the config values

import firebase from 'firebase';
import 'firebase/firestore';

firebase.initializeApp(firebaseConfig);
const db = firebase.firestore();

db.collection(objectsPath)
  .onSnapshot(querySnapshot => {
    const docs = [];
    querySnapshot.forEach(doc => docs.push(doc.data()));
    setObjects(docs);
  });

const ref = db.collection(objectsPath).doc(String(id));
ref
  .update({ [attribute]: value })
  .catch(console.error);