Answer the question
In order to leave comments, you need to log in
How to render firebase json in React?
Hello.
I'm a beginner React user building a simple application that interacts with Firebase.
Please tell me how to render the resulting list of values.
data structure in firebase
words:
-LcpMf0KkXte40IfKdwS
key: "fffddvsdvdv"
-LcpMpw2trADUe5oYbtd
key: "qqqq"
-LcpUHbMEZVlovefySVf
key: "wqwqwq"
const response = await axios.get(`API_KEY/words.json`)
const words = Object.values(response.data)
this.setState ({
words
})
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question