December 2019
Intermediate to advanced
474 pages
10h 3m
English
Loading and displaying data that is retrieved from a data source is something we did in the previous chapter. This section will explore this further. Follow these steps to get started:
...class Board extends Component {+ constructor() {+ super();+ this.state = {+ data: [],+ loading: true,+ error: '',+ }+ }+ async componentDidMount() {+ try {+ const tickets = await fetch('../../assets/data.json');+ const ticketsJSON ...