get data from firestore and save it to state

CSS
 const handleReload = () => {
        db.collection('users').doc(id).get()
            .then(snapshot => setUserDetails(snapshot.data()))
    }
Source

Also in CSS: