B
B
brbrs2019-04-20 12:42:14
JSON
brbrs, 2019-04-20 12:42:14

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"

Get database query
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

1 answer(s)
0
0xD34F, 2019-04-20
@brbrs

I'm a beginner

Do you think that somehow justifies your reluctance to read the documentation? No, go ahead and read .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question