Can someone explain to me how to fetch from firebase & set in a VAR with ReactJS?
Posted by Dplayerx@reddit | learnprogramming | View on Reddit | 1 comments
I’m a noob and i managed to make a website for me and my friends. I can fetch in a collection but it gives me an array.
I just want a single int in my document and use it. If someone has good explanation that be great. I’ve been watching/reading on it for days and it just doesn’t work for me.. explain it to me like I’ve never used JavaScript in my life
Please help
Tianshui@reddit
What does your data in your collection look like?
For each document in your collection you can map it into an object using a function or a class.