componentDidMount() {
    var  self  =  this;
    driverService.getDrivers().then(function (result) {
        self.setState({ drivers:  result, filtered: 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() {
    var  self  =  this;
    driverService.getDrivers().then(function (result) {
        self.setState({ drivers:  result, filtered: result});
    });
}
componentDidMount ( ) { var self = this ; driverService . getDrivers ( ) . then ( function ( result ) { self . setState ( { drivers : result , filtered : 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 .