Posts by Junior • 33 points
2 posts
-
0
votes2
answers784
viewsA: Problem accessing Json API with React
Solution supplied by Milk import React, { Component } from "react" export default class extends Component { constructor(props) { super(props) this.state = { page: [], } } componentDidMount() {…
-
3
votes2
answers784
viewsQ: Problem accessing Json API with React
I am trying to access the following variable in the Json of an API: page[0].infoBloco[0].tabela[0].dados[0].fonte.nome I’m getting the bug: TypeError: this.state.page[0] is undefined[Learn More]…