componentDidMount() {
        var  self  =  this;
        recipientService.getRecipients().then(function (result) {
            self.setState({ recipients:  result, filtered_recipients: result});
        });

        locationService.getLocations().then((result) => {
            this.setState({
                locations: 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;
        recipientService.getRecipients().then(function (result) {
            self.setState({ recipients:  result, filtered_recipients: result});
        });
        locationService.getLocations().then((result) => {
            this.setState({
                locations: result,
            });
        });
    }
componentDidMount ( ) { var self = this ; recipientService . getRecipients ( ) . then ( function ( result ) { self . setState ( { recipients : result , filtered_recipients : result } ) ; } ) ; locationService . getLocations ( ) . then ( ( result ) => { this . setState ( { locations : 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 .