componentDidMount() {
    let params = this.props.match.params;

    recipientService.getRecipients().then((result) => {
      this.setState({
        recipients: result,
      });
    });

    routeService.getRoute(1).then((result) => {
      this.setState({
        route: result,
      });
    });

    routeService.getRoutes().then((result) => {
      this.setState({
        routes: result,
      });
    });

    routeService.getRouteLists().then((result) => {
      this.setState({
        routeLists: result,
      });
    });

    routeService.getRouteList().then((result) => {
      this.setState({
        routeList: result,
    });
  });

    driverService.getDrivers().then((result) => {
      this.setState({
        drivers: result,
      });
    });

    driverService.getDriver(params.driverId).then((result) => {
      this.setState({
        driver: result,
      });
    });
  }
/**
   * Life cycle hook that is called after the component is first rendered.
   */
Life cycle hook that is called after the component is first rendered.
Life cycle hook that is called after the component is first rendered .
componentDidMount() {
    let params = this.props.match.params;
    recipientService.getRecipients().then((result) => {
      this.setState({
        recipients: result,
      });
    });
    routeService.getRoute(1).then((result) => {
      this.setState({
        route: result,
      });
    });
    routeService.getRoutes().then((result) => {
      this.setState({
        routes: result,
      });
    });
    routeService.getRouteLists().then((result) => {
      this.setState({
        routeLists: result,
      });
    });
    routeService.getRouteList().then((result) => {
      this.setState({
        routeList: result,
    });
  });
    driverService.getDrivers().then((result) => {
      this.setState({
        drivers: result,
      });
    });
    driverService.getDriver(params.driverId).then((result) => {
      this.setState({
        driver: result,
      });
    });
  }
componentDidMount ( ) { let params = this . props . match . params ; recipientService . getRecipients ( ) . then ( ( result ) => { this . setState ( { recipients : result , } ) ; } ) ; routeService . getRoute ( 1 ) . then ( ( result ) => { this . setState ( { route : result , } ) ; } ) ; routeService . getRoutes ( ) . then ( ( result ) => { this . setState ( { routes : result , } ) ; } ) ; routeService . getRouteLists ( ) . then ( ( result ) => { this . setState ( { routeLists : result , } ) ; } ) ; routeService . getRouteList ( ) . then ( ( result ) => { this . setState ( { routeList : result , } ) ; } ) ; driverService . getDrivers ( ) . then ( ( result ) => { this . setState ( { drivers : result , } ) ; } ) ; driverService . getDriver ( params . driverId ) . then ( ( result ) => { this . setState ( { driver : result , } ) ; } ) ; }
Life cycle hook that is called after the component is first rendered.
Life cycle hook that is called after the component is first rendered .