frontend/src/App.js
/**
   * Hook into the component lifecycle to fetch data
   */
Hook into the component lifecycle to fetch data
Hook into the component lifecycle to fetch data
componentDidMount() {
    this.client.fetchAssets(this.getClientHandlers('assets', []));
    this.client.fetchEventTypes(this.getClientHandlers('eventTypes', []));
    this.client.fetchEvents(this.getClientHandlers('events', []));
  }
componentDidMount ( ) { this . client . fetchAssets ( this . getClientHandlers ( 'assets' , [ ] ) ) ; this . client . fetchEventTypes ( this . getClientHandlers ( 'eventTypes' , [ ] ) ) ; this . client . fetchEvents ( this . getClientHandlers ( 'events' , [ ] ) ) ; }
Hook into the component lifecycle to fetch data
Hook into the component lifecycle to fetch data
// Get assets from API // Get event types from API // Get events from API